summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 19:51:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 19:51:37 +0300
commitb51356b80da3de094dea8b81747e7bdf25f00b55 (patch)
tree267ecaa7c9a41156d43599b3732457fcd5dc37b8 /src/gui
parente5ed738d09700004362bf1344d8f331279903d29 (diff)
downloadplus-b51356b80da3de094dea8b81747e7bdf25f00b55.tar.gz
plus-b51356b80da3de094dea8b81747e7bdf25f00b55.tar.bz2
plus-b51356b80da3de094dea8b81747e7bdf25f00b55.tar.xz
plus-b51356b80da3de094dea8b81747e7bdf25f00b55.zip
add restrict into checkbox.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/checkbox.cpp4
-rw-r--r--src/gui/widgets/checkbox.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp
index 71783794b..0dfd45745 100644
--- a/src/gui/widgets/checkbox.cpp
+++ b/src/gui/widgets/checkbox.cpp
@@ -38,9 +38,9 @@ Skin *CheckBox::mSkin = nullptr;
float CheckBox::mAlpha = 1.0;
CheckBox::CheckBox(const Widget2 *const widget,
- const std::string &caption, const bool selected,
+ const std::string &restrict caption, const bool selected,
gcn::ActionListener *const listener,
- const std::string &eventId) :
+ const std::string &restrict eventId) :
gcn::CheckBox(caption, selected),
Widget2(widget),
mPadding(0),
diff --git a/src/gui/widgets/checkbox.h b/src/gui/widgets/checkbox.h
index c28eab90b..3728d58bf 100644
--- a/src/gui/widgets/checkbox.h
+++ b/src/gui/widgets/checkbox.h
@@ -44,9 +44,10 @@ class CheckBox final : public gcn::CheckBox,
* Constructor.
*/
CheckBox(const Widget2 *const widget,
- const std::string &caption, const bool selected = false,
+ const std::string &restrict caption,
+ const bool selected = false,
gcn::ActionListener *const listener = nullptr,
- const std::string &eventId = "");
+ const std::string &restrict eventId = "");
A_DELETE_COPY(CheckBox)