diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-30 22:53:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-30 22:53:27 +0300 |
commit | 5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch) | |
tree | d36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/widgets/widgetgroup.cpp | |
parent | 4210163dae7d6266923ab11f78b631173c9533e3 (diff) | |
download | ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.gz ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.bz2 ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.tar.xz ManaVerse-5cbd0d2cb7086fda592c00dbc3b07d06af95f080.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/widgetgroup.cpp')
-rw-r--r-- | src/gui/widgets/widgetgroup.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/widgetgroup.cpp b/src/gui/widgets/widgetgroup.cpp index 076cf059c..104d319a0 100644 --- a/src/gui/widgets/widgetgroup.cpp +++ b/src/gui/widgets/widgetgroup.cpp @@ -24,7 +24,8 @@ #include "debug.h" -WidgetGroup::WidgetGroup(std::string group, int height, int spacing) : +WidgetGroup::WidgetGroup(const std::string &group, const int height, + const int spacing) : mSpacing(spacing), mCount(0), mGroup(group), @@ -44,7 +45,7 @@ void WidgetGroup::addButton(std::string text, std::string tag) if (text.empty() || tag.empty()) return; - Widget *widget = createWidget(text); + Widget *const widget = createWidget(text); if (widget) { widget->setActionEventId(mActionEventId + tag); @@ -62,7 +63,7 @@ void WidgetGroup::action(const gcn::ActionEvent &event) } } -void WidgetGroup::add(gcn::Widget *widget, int spacing) +void WidgetGroup::add(gcn::Widget *const widget, const int spacing) { if (!widget) return; |