summaryrefslogtreecommitdiff
path: root/src/gui/npcpostdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r--src/gui/npcpostdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp
index b2ffb312c..a6b12f833 100644
--- a/src/gui/npcpostdialog.cpp
+++ b/src/gui/npcpostdialog.cpp
@@ -123,9 +123,9 @@ void NpcPostDialog::setVisible(bool visible)
void NpcPostDialog::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)
+ {
(*it)->close();
+ }
}