summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.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/gui/chatwindow.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/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 528c1e39e..0403b5e17 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -331,10 +331,10 @@ void ChatWindow::loadGMCommands()
const char *fileName = "gmcommands.txt";
ResourceManager *resman = ResourceManager::getInstance();
- std::vector<std::string> list;
+ StringVect list;
resman->loadTextFile(fileName, list);
- std::vector<std::string>::const_iterator it = list.begin();
- std::vector<std::string>::const_iterator it_end = list.end();
+ StringVectCIter it = list.begin();
+ StringVectCIter it_end = list.end();
while (it != it_end)
{
@@ -1194,7 +1194,7 @@ void ChatWindow::autoComplete()
return;
ChatTab *cTab = static_cast<ChatTab*>(mChatTabs->getSelectedTab());
- std::vector<std::string> nameList;
+ StringVect nameList;
if (cTab)
cTab->getAutoCompleteList(nameList);
@@ -1243,10 +1243,10 @@ void ChatWindow::autoComplete()
}
}
-std::string ChatWindow::autoComplete(std::vector<std::string> &names,
+std::string ChatWindow::autoComplete(StringVect &names,
std::string partName) const
{
- std::vector<std::string>::const_iterator i = names.begin();
+ StringVectCIter i = names.begin();
toLower(partName);
std::string newName("");
@@ -1282,7 +1282,7 @@ std::string ChatWindow::autoComplete(std::string partName, History *words)
return "";
Commands::const_iterator i = words->begin();
- std::vector<std::string> nameList;
+ StringVect nameList;
while (i != words->end())
{
@@ -1310,7 +1310,7 @@ void ChatWindow::moveTabRight(ChatTab *tab)
std::string ChatWindow::autoCompleteHistory(std::string partName)
{
History::const_iterator i = mHistory.begin();
- std::vector<std::string> nameList;
+ StringVect nameList;
while (i != mHistory.end())
{