From 8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Apr 2012 02:26:22 +0300 Subject: Improve iterators part 1. --- src/gui/editdialog.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/editdialog.cpp') diff --git a/src/gui/editdialog.cpp b/src/gui/editdialog.cpp index 1bd3ccbf5..37033af64 100644 --- a/src/gui/editdialog.cpp +++ b/src/gui/editdialog.cpp @@ -66,9 +66,11 @@ EditDialog::EditDialog(const std::string &title, const std::string &msg, void EditDialog::action(const gcn::ActionEvent &event) { // Proxy button events to our listeners - ActionListenerIterator i; - for (i = mActionListeners.begin(); i != mActionListeners.end(); ++i) + for (ActionListenerIterator i = mActionListeners.begin(), + i_end = mActionListeners.end(); i != i_end; ++i) + { (*i)->action(event); + } if (event.getId() == mEventOk) scheduleDelete(); -- cgit v1.2.3-70-g09d2