From 531433248fbad49e2b8e9d90de9855f3ea9b2257 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Jan 2013 19:01:23 +0300 Subject: Another part with FOR_EACH changes. --- src/gui/charselectdialog.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gui/charselectdialog.cpp') diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 82daaeced..a912b9198 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -461,15 +461,13 @@ void CharSelectDialog::attemptCharacterSelect(const int index) void CharSelectDialog::setCharacters(const Net::Characters &characters) { // Reset previous characters - for (std::vector::const_iterator - iter = mCharacterEntries.begin(), iter_end = mCharacterEntries.end(); - iter != iter_end; ++iter) + FOR_EACH (std::vector::const_iterator, + iter, mCharacterEntries) { (*iter)->setCharacter(nullptr); } - for (Net::Characters::const_iterator i = characters.begin(), - i_end = characters.end(); i != i_end; ++i) + FOR_EACH (Net::Characters::const_iterator, i, characters) { if (!*i) continue; -- cgit v1.2.3-70-g09d2