Skip to content

Commit

Permalink
fix: build error on macos due to emplace_back
Browse files Browse the repository at this point in the history
  • Loading branch information
Serein207 committed Sep 30, 2024
1 parent c06e749 commit d829bfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Controller/View/HistoryPage.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "app.h"
#include <Controller/AsyncExecutor.hh>
#include <Controller/Convert.h>
#include <Controller/UiBridge.h>
Expand Down Expand Up @@ -69,9 +70,10 @@ Task<Result<std::vector<EventFeedbackStruct>>> HistoryPage::loadHistoryEventsTas
spdlog::warn("feedback load failed: {}", feedbackRes.unwrapErr().what());
self.bridge.getMessageManager().showMessage(feedbackRes.unwrapErr().what(),
MessageType::Error);
res.emplace_back(convert::from(event), FeedbackStruct{});
res.emplace_back(EventFeedbackStruct{convert::from(event), FeedbackStruct{}});
} else {
res.emplace_back(convert::from(event), convert::from(feedbackRes.unwrap()));
res.emplace_back(
EventFeedbackStruct{convert::from(event), convert::from(feedbackRes.unwrap())});
}
}
co_return res;
Expand Down

0 comments on commit d829bfa

Please sign in to comment.