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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/buydialog.cpp b/src/gui/buydialog.cpp
index 24ac63a00..e18b0965d 100644
--- a/src/gui/buydialog.cpp
+++ b/src/gui/buydialog.cpp
@@ -346,8 +346,7 @@ void BuyDialog::setVisible(bool visible)
void BuyDialog::closeAll()
{
- for (DialogList::const_iterator it = instances.begin(),
- it_end = instances.end(); it != it_end; ++it)
+ FOR_EACH (DialogList::const_iterator, it, instances)
{
if (*it)
(*it)->close();