diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-25 02:26:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-25 02:26:22 +0300 |
commit | 8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf (patch) | |
tree | 2c95704e2de3418227faf7a52357a6fe03d5b735 /src/gui/widgets/setuptabscroll.cpp | |
parent | e73f7da4d65e7dc61a952894cc6f0843c4da3170 (diff) | |
download | plus-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.tar.gz plus-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.tar.bz2 plus-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.tar.xz plus-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.zip |
Improve iterators part 1.
Diffstat (limited to 'src/gui/widgets/setuptabscroll.cpp')
-rw-r--r-- | src/gui/widgets/setuptabscroll.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/setuptabscroll.cpp b/src/gui/widgets/setuptabscroll.cpp index f3f8b1526..13c2668f5 100644 --- a/src/gui/widgets/setuptabscroll.cpp +++ b/src/gui/widgets/setuptabscroll.cpp @@ -87,8 +87,8 @@ void SetupTabScroll::addControl(SetupItem *widget, std::string event) void SetupTabScroll::apply() { - std::map<std::string, SetupItem*>::const_iterator iter; - for (iter = mItems.begin(); iter != mItems.end(); ++ iter) + for (std::map<std::string, SetupItem*>::const_iterator + iter = mItems.begin(); iter != mItems.end(); ++ iter) { if ((*iter).second) (*iter).second->apply((*iter).first); @@ -97,8 +97,8 @@ void SetupTabScroll::apply() void SetupTabScroll::cancel() { - std::map<std::string, SetupItem*>::const_iterator iter; - for (iter = mItems.begin(); iter != mItems.end(); ++ iter) + for (std::map<std::string, SetupItem*>::const_iterator + iter = mItems.begin(); iter != mItems.end(); ++ iter) { if ((*iter).second) (*iter).second->cancel((*iter).first); @@ -107,8 +107,8 @@ void SetupTabScroll::cancel() void SetupTabScroll::externalUpdated() { - std::map<std::string, SetupItem*>::const_iterator iter; - for (iter = mItems.begin(); iter != mItems.end(); ++ iter) + for (std::map<std::string, SetupItem*>::const_iterator + iter = mItems.begin(); iter != mItems.end(); ++ iter) { SetupItem *widget = (*iter).second; if (widget && !widget->isMainConfig()) |