summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windowmenu.h')
-rw-r--r--src/gui/windowmenu.h8
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();