Fix some compiler warnings

This commit is contained in:
Henrik Rydgård committed 2026-03-11 11:05:33 +01:00
1 parent dcd4851171
commit efef734034
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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; }
+2 -2
View File
@@ -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: