From efef7340340c0a8811c71fd524fd63d5b385f782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 10 Mar 2026 21:06:25 +0100 Subject: [PATCH] Fix some compiler warnings --- Common/UI/PopupScreens.h | 2 +- Common/UI/View.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/UI/PopupScreens.h b/Common/UI/PopupScreens.h index 06677036e0..4a6792d037 100644 --- a/Common/UI/PopupScreens.h +++ b/Common/UI/PopupScreens.h @@ -43,7 +43,7 @@ public: notificationLevel_ = noticeLevel; notificationString_ = str; } - virtual UI::Margins RootMargins() const { return UI::Margins(12, 24); } + virtual UI::Margins RootMargins() const override { return UI::Margins(12, 24); } protected: virtual bool FillVertical() const { return false; } diff --git a/Common/UI/View.h b/Common/UI/View.h index 00b6ce5978..b9ccd91fd5 100644 --- a/Common/UI/View.h +++ b/Common/UI/View.h @@ -835,7 +835,7 @@ public: rightText_ = text; } protected: - void GetContentDimensionsBySpec(const UIContext &dc, MeasureSpec horiz, MeasureSpec vert, float &w, float &h) const; + void GetContentDimensionsBySpec(const UIContext &dc, MeasureSpec horiz, MeasureSpec vert, float &w, float &h) const override; private: std::string text_; @@ -1085,7 +1085,7 @@ class ClickableTextView : public TextView { public: ClickableTextView(std::string_view text, LayoutParams *layoutParams = 0) : TextView(text, layoutParams) {} - bool Touch(const TouchInput &input); + bool Touch(const TouchInput &input) override; Event OnClick; private: