diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-29 03:51:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-29 03:52:16 +0300 |
commit | 3bf4e26b1319295532bb4396cbd6406d85cbcae0 (patch) | |
tree | 80a4303b29aafa21683e90e45798283a482bf1d1 /src/gui/socialwindow.cpp | |
parent | 7f607a0f58a9eba53237955c06bf445c71d57b6c (diff) | |
download | manaplus-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/gui/socialwindow.cpp')
-rw-r--r-- | src/gui/socialwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index f0ac9e128..361e94037 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -576,7 +576,7 @@ public: if (actorSpriteManager) { - std::vector<std::string> names; + StringVect names; actorSpriteManager->getPlayerNames(names, false); std::vector<Avatar*>::iterator ai = avatars->begin(); @@ -587,7 +587,7 @@ public: if (!ava) break; - std::vector<std::string>::const_iterator i = names.begin(); + StringVectCIter i = names.begin(); while (i != names.end()) { if (ava->getName() == (*i) && (*i) != "") @@ -609,7 +609,7 @@ public: } } - std::vector<std::string>::const_iterator i = names.begin(); + StringVectCIter i = names.begin(); while (i != names.end()) { @@ -1141,7 +1141,7 @@ public: } avatars->clear(); - std::vector<std::string> *players + StringVect *players = player_relations.getPlayersByRelation(PlayerRelation::FRIEND); const std::set<std::string> &players2 = whoIsOnline->getOnlineNicks(); @@ -1149,8 +1149,8 @@ public: if (!players) return; - std::vector<std::string>::iterator it = players->begin(); - std::vector<std::string>::iterator it_end = players->end(); + StringVectIter it = players->begin(); + StringVectIter it_end = players->end(); for (; it != it_end; ++ it) { Avatar *ava = nullptr; |