diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-23 02:46:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-23 02:48:43 +0300 |
commit | a69a87c5a81ddbf25a25c5549259da550d207bda (patch) | |
tree | 59f1a919b327912395ab84bab1684118bf0379be /src/guichan/gui.cpp | |
parent | e646f2fae3f323b7faa26aa9540524d1765211ee (diff) | |
download | plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.gz plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.bz2 plus-a69a87c5a81ddbf25a25c5549259da550d207bda.tar.xz plus-a69a87c5a81ddbf25a25c5549259da550d207bda.zip |
Improve a bit iterators again.
Diffstat (limited to 'src/guichan/gui.cpp')
-rw-r--r-- | src/guichan/gui.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/guichan/gui.cpp b/src/guichan/gui.cpp index 0a24d8b17..68cb83190 100644 --- a/src/guichan/gui.cpp +++ b/src/guichan/gui.cpp @@ -263,8 +263,8 @@ namespace gcn while (!widgetWithMouseQueueCheckDone) { unsigned int iterations = 0; - std::deque<Widget*>::iterator iter; - for (iter = mWidgetWithMouseQueue.begin(); + for (std::deque<Widget*>::iterator + iter = mWidgetWithMouseQueue.begin(); iter != mWidgetWithMouseQueue.end(); ++ iter) { @@ -755,9 +755,8 @@ namespace gcn void Gui::distributeKeyEventToGlobalKeyListeners(KeyEvent& keyEvent) { - KeyListenerListIterator it; - - for (it = mKeyListeners.begin(); it != mKeyListeners.end(); ++ it) + for (KeyListenerListIterator it = mKeyListeners.begin(); + it != mKeyListeners.end(); ++ it) { switch (keyEvent.getType()) { |