From 38cb94365973a2205a22729fa69d74c8be32ff18 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 2 Sep 2024 21:06:01 +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. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/25a43d285514c66a5af5d41a413deeb6665cbe80 Author: Thilo Graf Date: 2024-09-02 (Mon, 02 Sep 2024) Origin message was: ------------------ 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. ------------------ This commit was generated by Migit --- 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 ab88d12c4..ee7432a06 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;} };