summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.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/chatwindow.cpp
parente646f2fae3f323b7faa26aa9540524d1765211ee (diff)
downloadmanaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.gz
manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.bz2
manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.xz
manaplus-a69a87c5a81ddbf25a25c5549259da550d207bda.zip
Improve a bit iterators again.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 75a9b5fbc..966223685 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -607,8 +607,9 @@ void ChatWindow::removeAllWhispers()
void ChatWindow::ignoreAllWhispers()
{
- TabMap::iterator iter;
- for (iter = mWhispers.begin(); iter != mWhispers.end(); ++iter)
+ for (TabMap::iterator iter = mWhispers.begin();
+ iter != mWhispers.end();
+ ++ iter)
{
WhisperTab *tab = dynamic_cast<WhisperTab*>(iter->second);
if (tab && player_relations.getRelation(tab->getNick())