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: 25a43d2855
Author: Thilo Graf <dbt@novatux.de>
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
This commit is contained in:
2024-09-02 21:06:01 +02:00
committed by vanhofen
parent b1c2a6c8ba
commit 38cb943659

View File

@@ -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;}
};