summaryrefslogtreecommitdiff
path: root/src/gui/buydialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/buydialog.cpp')
-rw-r--r--src/gui/buydialog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/buydialog.cpp b/src/gui/buydialog.cpp
index 83207b3d8..df64a5a61 100644
--- a/src/gui/buydialog.cpp
+++ b/src/gui/buydialog.cpp
@@ -345,10 +345,8 @@ void BuyDialog::setVisible(bool visible)
void BuyDialog::closeAll()
{
- DialogList::const_iterator it = instances.begin();
- DialogList::const_iterator it_end = instances.end();
-
- for (; it != it_end; ++it)
+ for (DialogList::const_iterator it = instances.begin(),
+ it_end = instances.end(); it != it_end; ++it)
{
if (*it)
(*it)->close();