summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-23 02:46:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-23 02:48:43 +0300
commita69a87c5a81ddbf25a25c5549259da550d207bda (patch)
tree59f1a919b327912395ab84bab1684118bf0379be /src/gui/windowmenu.cpp
parente646f2fae3f323b7faa26aa9540524d1765211ee (diff)
downloadplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.gz
plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.bz2
plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.xz
plus-a69a87c5a81ddbf25a25c5549259da550d207bda.zip
Improve a bit iterators again.
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r--src/gui/windowmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 2bebc69a7..7ecb8e2fa 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -393,9 +393,9 @@ void WindowMenu::loadButtons()
void WindowMenu::saveButtons()
{
- std::vector <gcn::Button*>::iterator it, it_end;
int i = 0;
- for (it = mButtons.begin(), it_end = mButtons.end();
+ for (std::vector <gcn::Button*>::iterator it = mButtons.begin(),
+ it_end = mButtons.end();
it != it_end; ++it)
{
Button *btn = dynamic_cast<Button*>(*it);