summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 65444a362..9f7ae209d 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -165,8 +165,9 @@ void Setup::action(const gcn::ActionEvent &event)
if (!statusWindow)
return;
- for (std::list<Window*>::const_iterator it = mWindowsToReset.begin();
- it != mWindowsToReset.end(); ++it)
+ for (std::list<Window*>::const_iterator it = mWindowsToReset.begin(),
+ it_end = mWindowsToReset.end();
+ it != it_end; ++it)
{
if (*it)
(*it)->resetToDefaultSize();
@@ -181,8 +182,8 @@ void Setup::setInGame(bool inGame)
void Setup::externalUpdate()
{
- for (std::list<SetupTab*>::const_iterator it = mTabs.begin();
- it != mTabs.end(); ++it)
+ for (std::list<SetupTab*>::const_iterator it = mTabs.begin(), it_end = mTabs.end();
+ it != it_end; ++ it)
{
if (*it)
(*it)->externalUpdated();