summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 20:15:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 20:15:30 +0300
commit6685cfdde742442bc0d79606daf8ef55c8e23711 (patch)
treef0a225556749f36b22986a84a29819b659e5c24e
parent4fea35e3aa96661f35139b9e26e9139bf924ded7 (diff)
downloadplus-6685cfdde742442bc0d79606daf8ef55c8e23711.tar.gz
plus-6685cfdde742442bc0d79606daf8ef55c8e23711.tar.bz2
plus-6685cfdde742442bc0d79606daf8ef55c8e23711.tar.xz
plus-6685cfdde742442bc0d79606daf8ef55c8e23711.zip
add restrict into radiobutton.
-rw-r--r--src/gui/widgets/radiobutton.cpp3
-rw-r--r--src/gui/widgets/radiobutton.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/radiobutton.cpp b/src/gui/widgets/radiobutton.cpp
index 1dff6ae7c..6ef7439b4 100644
--- a/src/gui/widgets/radiobutton.cpp
+++ b/src/gui/widgets/radiobutton.cpp
@@ -38,7 +38,8 @@ Skin *RadioButton::mSkin = nullptr;
float RadioButton::mAlpha = 1.0;
RadioButton::RadioButton(const Widget2 *const widget,
- const std::string &caption, const std::string &group,
+ const std::string &restrict caption,
+ const std::string &restrict group,
const bool marked):
gcn::RadioButton(caption, group, marked),
Widget2(widget),
diff --git a/src/gui/widgets/radiobutton.h b/src/gui/widgets/radiobutton.h
index 0bfd97c76..f701a6335 100644
--- a/src/gui/widgets/radiobutton.h
+++ b/src/gui/widgets/radiobutton.h
@@ -41,8 +41,10 @@ class RadioButton final : public gcn::RadioButton,
/**
* Constructor.
*/
- RadioButton(const Widget2 *const widget, const std::string &caption,
- const std::string &group, const bool marked = false);
+ RadioButton(const Widget2 *const widget,
+ const std::string &restrict caption,
+ const std::string &restrict group,
+ const bool marked = false);
A_DELETE_COPY(RadioButton)