Couple warning fixes.

This commit is contained in:
Henrik Rydgård 2021-03-09 00:09:36 +01:00
parent 3ac405ab5d
commit 5dc36abbf7
2 changed files with 2 additions and 2 deletions

View File

@ -982,7 +982,7 @@ public:
GameInfoBGView(const std::string &gamePath, UI::LayoutParams *layoutParams) : InertView(layoutParams), gamePath_(gamePath) {
}
void Draw(UIContext &dc) {
void Draw(UIContext &dc) override {
// Should only be called when visible.
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(dc.GetDrawContext(), gamePath_, GAMEINFO_WANTBG);
dc.Flush();

View File

@ -42,7 +42,7 @@ private:
class OnScreenMessagesView : public UI::InertView {
public:
OnScreenMessagesView(UI::LayoutParams *layoutParams = nullptr) : UI::InertView(layoutParams) {}
void Draw(UIContext &dc);
void Draw(UIContext &dc) override;
std::string DescribeText() const override;
};