diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-30 22:53:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-30 22:53:27 +0300 |
commit | 5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch) | |
tree | d36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/windowmenu.h | |
parent | 4210163dae7d6266923ab11f78b631173c9533e3 (diff) | |
download | plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2 plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz plus-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/windowmenu.h')
-rw-r--r-- | src/gui/windowmenu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h index 3538a9b83..490b24d87 100644 --- a/src/gui/windowmenu.h +++ b/src/gui/windowmenu.h @@ -71,7 +71,7 @@ class WindowMenu : public Container, std::vector <gcn::Button*> &getButtons() { return mButtons; } - void showButton(std::string name, bool visible); + void showButton(const std::string &name, const bool visible); void loadButtons(); @@ -82,8 +82,10 @@ class WindowMenu : public Container, private: void drawChildren(gcn::Graphics* graphics); - inline void addButton(const char* text, std::string description, - int &x, int &h, int key, bool visible = true); + inline void addButton(const char *const text, + const std::string &description, + int &x, int &h, const int key, + const bool visible = true); void updateButtons(); |