mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CMenuForwarder: declare some members as const
Technically some member functions can be const
This commit is contained in:
@@ -217,8 +217,8 @@ class CMenuForwarder : public CMenuItem
|
||||
int getHeight(void) const;
|
||||
int getWidth(void);
|
||||
void setTextLocale(const neutrino_locale_t Text);
|
||||
neutrino_locale_t getTextLocale(){return text;};
|
||||
CMenuTarget* getTarget(){return jumpTarget;};
|
||||
neutrino_locale_t getTextLocale() const {return text;};
|
||||
CMenuTarget* getTarget() const {return jumpTarget;};
|
||||
std::string getActionKey(){return actionKey;};
|
||||
|
||||
int exec(CMenuTarget* parent);
|
||||
@@ -356,7 +356,7 @@ class CMenuOptionChooser : public CAbstractMenuOptionChooser
|
||||
int getWidth(void);
|
||||
|
||||
int paint(bool selected);
|
||||
std::string getOptionName() {return optionNameString;};
|
||||
std::string getOptionName()const {return optionNameString;};
|
||||
|
||||
int exec(CMenuTarget* parent);
|
||||
int isMenueOptionChooser(void) const{return 1;}
|
||||
@@ -502,16 +502,16 @@ class CMenuWidget : public CMenuTarget
|
||||
void insertItem(const uint& item_id, CMenuItem* menuItem);
|
||||
void removeItem(const uint& item_id);
|
||||
int getItemId(CMenuItem* menuItem);
|
||||
int getItemsCount(){return items.size();};
|
||||
int getItemsCount()const{return items.size();};
|
||||
CMenuItem* getItem(const uint& item_id);
|
||||
virtual void paint();
|
||||
virtual void hide();
|
||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
virtual std::string getName();
|
||||
void setSelected(const int &Preselected){ preselected = Preselected; };
|
||||
int getSelected(){ return selected; };
|
||||
int getSelected()const { return selected; };
|
||||
void move(int xoff, int yoff);
|
||||
int getSelectedLine(void){return exit_pressed ? -1 : selected;};
|
||||
int getSelectedLine(void)const {return exit_pressed ? -1 : selected;};
|
||||
void setWizardMode(bool _from_wizard) { from_wizard = _from_wizard;};
|
||||
void enableFade(bool _enable) { fade = _enable; };
|
||||
void enableSaveScreen(bool enable);
|
||||
|
Reference in New Issue
Block a user