From 126fd49b33da4df1ad8b98375b742fc6042db5b0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 4 Jul 2024 16:08:36 +0200 Subject: [PATCH] mb.h: Fixed method overriding issue in CMenuSelector class - Fixed the getHeight() method in CMenuSelector using the override keyword to ensure it correctly overrides the virtual method from CMenuItem. - Resolved -Woverloaded-virtual warnings related to hidden overloaded virtual methods. --- src/gui/moviebrowser/mb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/moviebrowser/mb.h b/src/gui/moviebrowser/mb.h index 6ea546a9e..5fa6deabb 100644 --- a/src/gui/moviebrowser/mb.h +++ b/src/gui/moviebrowser/mb.h @@ -377,7 +377,7 @@ class CMenuSelector : public CMenuItem CMenuSelector(const char * OptionName, const bool Active , std::string & OptionValue, int* ReturnInt = NULL,int ReturnIntValue = 0); int exec(CMenuTarget* parent); int paint(bool selected); - int getHeight(void) const{return height;}; + int getHeight(void) override {return height;}; bool isSelectable(void) const { return active;} };