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/questswindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/gui/questswindow.cpp') diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp index cb03904a9..911394a56 100644 --- a/src/gui/questswindow.cpp +++ b/src/gui/questswindow.cpp @@ -277,8 +277,7 @@ void QuestsWindow::rebuild(const bool playSound) const int var = (*it).first; const int val = (*it).second; const std::vector &quests = mQuests[var]; - for (std::vector::const_iterator it2 = quests.begin(), - it2_end = quests.end(); it2 != it2_end; ++ it2) + FOR_EACH (std::vector::const_iterator, it2, quests) { if (!*it2) continue; @@ -372,8 +371,7 @@ void QuestsWindow::showQuest(const QuestItem *const quest) const std::vector &texts = quest->texts; mText->clearRows(); - for (std::vector::const_iterator it = texts.begin(), - it_end = texts.end(); it != it_end; ++ it) + FOR_EACH (std::vector::const_iterator, it, texts) { const QuestItemText &data = *it; switch (data.type) -- cgit v1.2.3-60-g2f50