From 46f0755975033f37eaae9db73c0e2b6499c2a923 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Aug 2012 02:10:59 +0300 Subject: Add const to more classes. --- src/gui/widgets/button.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/button.h') diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index c2d8b0b52..e3ff82f0f 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -52,24 +52,25 @@ class Button : public gcn::Button, public gcn::WidgetListener * adds the given action listener. */ Button(const std::string &caption, const std::string &actionEventId, - gcn::ActionListener *listener); + gcn::ActionListener *const listener); /** * Constructor, sets the caption of the button to the given string and * adds the given action listener. */ Button(const std::string &caption, const std::string &imageName, - int imageWidth, int imageHeight, + const int imageWidth, const int imageHeight, const std::string &actionEventId, - gcn::ActionListener *listener); + gcn::ActionListener *const listener); /** * Constructor, sets the caption of the button to the given string and * adds the given action listener. */ - Button(const std::string &imageName, int imageWidth, int imageHeight, + Button(const std::string &imageName, + const int imageWidth, const int imageHeight, const std::string &actionEventId, - gcn::ActionListener *listener); + gcn::ActionListener *const listener); /** * Destructor. @@ -123,7 +124,7 @@ class Button : public gcn::Button, public gcn::WidgetListener void keyReleased(gcn::KeyEvent &keyEvent); - bool isPressed2(); + bool isPressed2() const; private: void init(); -- cgit v1.2.3-60-g2f50