diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-25 02:26:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-25 02:26:22 +0300 |
commit | 8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf (patch) | |
tree | 2c95704e2de3418227faf7a52357a6fe03d5b735 /src/gui/editdialog.cpp | |
parent | e73f7da4d65e7dc61a952894cc6f0843c4da3170 (diff) | |
download | manaverse-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.tar.gz manaverse-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.tar.bz2 manaverse-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.tar.xz manaverse-8e19f9b9d792cf4d3d3b022fd26a258c3d3d97bf.zip |
Improve iterators part 1.
Diffstat (limited to 'src/gui/editdialog.cpp')
-rw-r--r-- | src/gui/editdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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(); |