summaryrefslogtreecommitdiff
path: root/src/gui/emotepopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/emotepopup.cpp')
-rw-r--r--src/gui/emotepopup.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/emotepopup.cpp b/src/gui/emotepopup.cpp
index 39017ac91..0b1d72808 100644
--- a/src/gui/emotepopup.cpp
+++ b/src/gui/emotepopup.cpp
@@ -213,10 +213,9 @@ void EmotePopup::recalculateSize()
void EmotePopup::distributeValueChangedEvent()
{
gcn::SelectionEvent event(this);
- Listeners::const_iterator i_end = mListeners.end();
- Listeners::const_iterator i;
- for (i = mListeners.begin(); i != i_end; ++i)
+ for (Listeners::const_iterator i = mListeners.begin(),
+ i_end = mListeners.end(); i != i_end; ++i)
{
if (*i)
(*i)->valueChanged(event);