summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-29 03:51:37 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-29 03:52:16 +0300
commit3bf4e26b1319295532bb4396cbd6406d85cbcae0 (patch)
tree80a4303b29aafa21683e90e45798283a482bf1d1 /src/commandhandler.cpp
parent7f607a0f58a9eba53237955c06bf445c71d57b6c (diff)
downloadmanaplus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.gz
manaplus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.bz2
manaplus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.xz
manaplus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.zip
Replace vectors with strings to short names.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 67b03e78c..c19836cc5 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -1308,11 +1308,11 @@ void CommandHandler::replaceVars(std::string &str)
}
if (str.find("<PEOPLE>") != std::string::npos)
{
- std::vector<std::string> names;
+ StringVect names;
std::string newStr = "";
actorSpriteManager->getPlayerNames(names, false);
- std::vector<std::string>::const_iterator it = names.begin();
- std::vector<std::string>::const_iterator it_end = names.end();
+ StringVectCIter it = names.begin();
+ StringVectCIter it_end = names.end();
for (; it != it_end; ++ it)
{
if (*it != player_node->getName())
@@ -1327,14 +1327,14 @@ void CommandHandler::replaceVars(std::string &str)
}
if (str.find("<PARTY>") != std::string::npos)
{
- std::vector<std::string> names;
+ StringVect names;
std::string newStr = "";
Party *party = nullptr;
if (player_node->isInParty() && (party = player_node->getParty()))
{
party->getNames(names);
- std::vector<std::string>::const_iterator it = names.begin();
- std::vector<std::string>::const_iterator it_end = names.end();
+ StringVectCIter it = names.begin();
+ StringVectCIter it_end = names.end();
for (; it != it_end; ++ it)
{
if (*it != player_node->getName())