summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setuptabscroll.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-30 22:53:27 +0300
commit5cbd0d2cb7086fda592c00dbc3b07d06af95f080 (patch)
treed36b4ac344f31f34311c7cb7a9a637ed48356e3e /src/gui/widgets/setuptabscroll.cpp
parent4210163dae7d6266923ab11f78b631173c9533e3 (diff)
downloadmanaverse-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/setuptabscroll.cpp')
-rw-r--r--src/gui/widgets/setuptabscroll.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/setuptabscroll.cpp b/src/gui/widgets/setuptabscroll.cpp
index 6bf627cdd..c668308c5 100644
--- a/src/gui/widgets/setuptabscroll.cpp
+++ b/src/gui/widgets/setuptabscroll.cpp
@@ -45,7 +45,7 @@ SetupTabScroll::~SetupTabScroll()
mContainer = nullptr;
std::set<SetupItem*>::iterator it = mAllItems.begin();
- std::set<SetupItem*>::iterator it_end = mAllItems.end();
+ const std::set<SetupItem*>::iterator it_end = mAllItems.end();
while (it != it_end)
{
delete *it;
@@ -54,12 +54,12 @@ SetupTabScroll::~SetupTabScroll()
mAllItems.clear();
}
-void SetupTabScroll::addControl(SetupItem *widget)
+void SetupTabScroll::addControl(SetupItem *const widget)
{
const std::string actionId = widget->getActionEventId();
if (!actionId.empty())
{
- std::map<std::string, SetupItem*>::iterator iter
+ const std::map<std::string, SetupItem*>::iterator iter
= mItems.find(actionId);
if (iter != mItems.end())
{
@@ -71,9 +71,9 @@ void SetupTabScroll::addControl(SetupItem *widget)
mAllItems.insert(widget);
}
-void SetupTabScroll::addControl(SetupItem *widget, std::string event)
+void SetupTabScroll::addControl(SetupItem *const widget, std::string event)
{
- std::map<std::string, SetupItem*>::iterator iter
+ const std::map<std::string, SetupItem*>::iterator iter
= mItems.find(event);
if (iter != mItems.end())
{
@@ -109,7 +109,7 @@ void SetupTabScroll::externalUpdated()
for (std::map<std::string, SetupItem*>::const_iterator
iter = mItems.begin(); iter != mItems.end(); ++ iter)
{
- SetupItem *widget = (*iter).second;
+ const SetupItem *const widget = (*iter).second;
if (widget && !widget->isMainConfig())
(*iter).second->externalUpdated((*iter).first);
}