diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/guichan/gui.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/guichan/gui.cpp b/src/guichan/gui.cpp index c96c61737..9e0229f05 100644 --- a/src/guichan/gui.cpp +++ b/src/guichan/gui.cpp @@ -344,9 +344,10 @@ namespace gcn // Check if the widget is present in the "widget with mouse" queue. bool widgetIsPresentInQueue = false; - std::deque<Widget*>::const_iterator iter; - for (iter = mWidgetWithMouseQueue.begin(); - iter != mWidgetWithMouseQueue.end(); + for (std::deque<Widget*>::const_iterator + iter = mWidgetWithMouseQueue.begin(), + iter_end = mWidgetWithMouseQueue.end(); + iter != iter_end; ++ iter) { if (*iter == widget) @@ -857,9 +858,10 @@ namespace gcn // Check if the widget is present in the "widget with mouse" queue. bool widgetIsPresentInQueue = false; - std::deque<Widget*>::const_iterator iter; - for (iter = mWidgetWithMouseQueue.begin(); - iter != mWidgetWithMouseQueue.end(); + for (std::deque<Widget*>::const_iterator + iter = mWidgetWithMouseQueue.begin(), + iter_end = mWidgetWithMouseQueue.end(); + iter != iter_end; ++ iter) { if (*iter == widget) |