From e5ed738d09700004362bf1344d8f331279903d29 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 19:48:19 +0300 Subject: add restrict into button. --- src/gui/widgets/button.h | 17 +++++++++++------ 1 file changed, 11 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 15567ea52..2e233cee5 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -57,7 +57,8 @@ class Button final : public gcn::Button, * adds the given action listener. */ Button(const Widget2 *const widget, - const std::string &caption, const std::string &actionEventId, + const std::string &restrict caption, + const std::string &restrict actionEventId, gcn::ActionListener *const listener); /** @@ -65,7 +66,8 @@ class Button final : public gcn::Button, * adds the given action listener. */ Button(const Widget2 *const widget, - const std::string &caption, const std::string &imageName, + const std::string &restrict caption, + const std::string &restrict imageName, const int imageWidth, const int imageHeight, const std::string &actionEventId, gcn::ActionListener *const listener); @@ -74,17 +76,20 @@ class Button final : public gcn::Button, * Constructor, sets the caption of the button to the given string and * adds the given action listener. */ - Button(const Widget2 *const widget, const std::string &imageName, + Button(const Widget2 *const widget, + const std::string &restrict imageName, const int imageWidth, const int imageHeight, - const std::string &actionEventId, + const std::string &restrict actionEventId, gcn::ActionListener *const listener); /** * Constructor, sets the caption of the button to the given string and * adds the given action listener. */ - Button(const Widget2 *const widget, const std::string &imageName, - const std::string &caption, const std::string &actionEventId, + Button(const Widget2 *const widget, + const std::string &restrict imageName, + const std::string &restrict caption, + const std::string &restrict actionEventId, gcn::ActionListener *const listener); A_DELETE_COPY(Button) -- cgit v1.2.3-60-g2f50