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:
2024-07-04 16:08:36 +02:00
parent 3b43b066b5
commit 126fd49b33

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