From 6685cfdde742442bc0d79606daf8ef55c8e23711 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 20:15:30 +0300 Subject: add restrict into radiobutton. --- src/gui/widgets/radiobutton.cpp | 3 ++- src/gui/widgets/radiobutton.h | 6 ++++-- 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) -- cgit v1.2.3-70-g09d2