CMenuForwarder: declare some members as const

Technically some member functions can be const
This commit is contained in:
2013-12-02 22:01:48 +01:00
parent 4d213e9ed9
commit e2d920660e

View File

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