mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
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 is contained in:
@@ -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;}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user