From 23d938f903653d9e1a255df928116e540eb6cc55 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 20:53:41 +0300 Subject: add restrict into widgetgroup. --- src/gui/widgets/widgetgroup.cpp | 3 ++- src/gui/widgets/widgetgroup.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/widgets/widgetgroup.cpp b/src/gui/widgets/widgetgroup.cpp index b3f204120..a85250701 100644 --- a/src/gui/widgets/widgetgroup.cpp +++ b/src/gui/widgets/widgetgroup.cpp @@ -42,7 +42,8 @@ void WidgetGroup::addButton(const std::string &tag) addButton(tag, tag); } -void WidgetGroup::addButton(const std::string &text, const std::string &tag) +void WidgetGroup::addButton(const std::string &restrict text, + const std::string &restrict tag) { if (text.empty() || tag.empty()) return; diff --git a/src/gui/widgets/widgetgroup.h b/src/gui/widgets/widgetgroup.h index b8906327e..94c14c285 100644 --- a/src/gui/widgets/widgetgroup.h +++ b/src/gui/widgets/widgetgroup.h @@ -37,8 +37,8 @@ class WidgetGroup : public Container, virtual void addButton(const std::string &tag); - virtual void addButton(const std::string &text, - const std::string &tag); + virtual void addButton(const std::string &restrict text, + const std::string &restrict tag); void action(const gcn::ActionEvent &event) override; -- cgit v1.2.3-70-g09d2