diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 16:54:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:56:16 +0300 |
commit | 761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch) | |
tree | 2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/gui/chatwindow.cpp | |
parent | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff) | |
download | mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2 mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz mv-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip |
Last part of fixes.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r-- | src/gui/chatwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index 29c3abe51..223737a59 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -1284,7 +1284,7 @@ std::string ChatWindow::autoComplete(StringVect &names, std::string name = *i; toLower(name); - std::string::size_type pos = name.find(partName, 0); + size_t pos = name.find(partName, 0); if (pos == 0) { if (newName != "") @@ -1314,7 +1314,7 @@ std::string ChatWindow::autoComplete(std::string partName, History *words) while (i != words->end()) { std::string line = *i; - std::string::size_type pos = line.find(partName, 0); + size_t pos = line.find(partName, 0); if (pos == 0) nameList.push_back(line); ++i; @@ -1370,7 +1370,7 @@ void ChatWindow::resortChatLog(std::string line, Own own, return; } - std::string::size_type idx = line.find(": \302\202"); + size_t idx = line.find(": \302\202"); if (idx != std::string::npos) { line = line.erase(idx + 2, 2); @@ -1378,13 +1378,13 @@ void ChatWindow::resortChatLog(std::string line, Own own, return; } - std::string::size_type idx1 = line.find("@@"); + size_t idx1 = line.find("@@"); if (idx1 != std::string::npos) { - std::string::size_type idx2 = line.find("|", idx1); + size_t idx2 = line.find("|", idx1); if (idx2 != std::string::npos) { - std::string::size_type idx3 = line.find("@@", idx2); + size_t idx3 = line.find("@@", idx2); if (idx3 != std::string::npos) { tradeChatTab->chatLog(line, own, ignoreRecord, |