summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-19 15:25:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-20 17:05:57 +0300
commit48071e171de41a23197c7328ba038331a936e0eb (patch)
tree73c7ef1da8e5dd76469d75c0336d88c3371e4263 /src/commands.cpp
parentd07fba228b5251862ad670e1d4f079c9456fab4b (diff)
downloadmanaverse-48071e171de41a23197c7328ba038331a936e0eb.tar.gz
manaverse-48071e171de41a23197c7328ba038331a936e0eb.tar.bz2
manaverse-48071e171de41a23197c7328ba038331a936e0eb.tar.xz
manaverse-48071e171de41a23197c7328ba038331a936e0eb.zip
Replace for to FOR_EACH in some classes.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp6
1 files changed, 2 insertions, 4 deletions
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 + ",";