Skip to content

Commit

Permalink
Fix -Wmissing-field-initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Sep 12, 2024
1 parent 08ed8b0 commit ab1728b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ App& App::instance() {
Finally App::init(AppParameters params) {
assert(impl == nullptr);
impl = std::make_unique<App::Impl>(
App::Impl{ std::move(params.displayName), params.pixelArt, params.steamAppId });
App::Impl{ std::move(params.displayName), params.pixelArt, params.steamAppId, {} });
return Finally{ [this]() { impl.reset(); } };
}

Expand Down
2 changes: 1 addition & 1 deletion src/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct Sound::Impl {
};

Sound::Sound(std::vector<float>& bufferData, long frequency)
: impl(new Impl{ load_raw(bufferData)->play() }) {
: impl(new Impl{ load_raw(bufferData)->play(), {}, {} }) {
std::shared_ptr<Stream> stream = impl->track;
if (frequency != jngl::audio::frequency) {
stream =
Expand Down

0 comments on commit ab1728b

Please sign in to comment.