mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +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.
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:
@@ -377,7 +377,7 @@ class CMenuSelector : public CMenuItem
|
|||||||
CMenuSelector(const char * OptionName, const bool Active , std::string & OptionValue, int* ReturnInt = NULL,int ReturnIntValue = 0);
|
CMenuSelector(const char * OptionName, const bool Active , std::string & OptionValue, int* ReturnInt = NULL,int ReturnIntValue = 0);
|
||||||
int exec(CMenuTarget* parent);
|
int exec(CMenuTarget* parent);
|
||||||
int paint(bool selected);
|
int paint(bool selected);
|
||||||
int getHeight(void) const{return height;};
|
int getHeight(void) override {return height;};
|
||||||
bool isSelectable(void) const { return active;}
|
bool isSelectable(void) const { return active;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user