From 48071e171de41a23197c7328ba038331a936e0eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Jan 2013 15:25:24 +0300 Subject: Replace for to FOR_EACH in some classes. --- src/commands.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 46a1e14f4..eeec00755 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1177,8 +1177,7 @@ void replaceVars(std::string &str) StringVect names; std::string newStr; actorSpriteManager->getPlayerNames(names, false); - for (StringVectCIter it = names.begin(), it_end = names.end(); - it != it_end; ++ it) + FOR_EACH (StringVectCIter, it, names) { if (*it != player_node->getName()) newStr += *it + ","; @@ -1198,8 +1197,7 @@ void replaceVars(std::string &str) if (player_node->isInParty() && (party = player_node->getParty())) { party->getNames(names); - for (StringVectCIter it = names.begin(), it_end = names.end(); - it != it_end; ++ it) + FOR_EACH (StringVectCIter, it, names) { if (*it != player_node->getName()) newStr += *it + ","; -- cgit v1.2.3-60-g2f50