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/widgets/chattab.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/widgets/chattab.cpp')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 5f1b02d98..9b3a00963 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -116,7 +116,7 @@ void ChatTab::chatLog(std::string line, Own own, tmp.nick = ""; tmp.text = line; - std::string::size_type pos = line.find(" : "); + size_t pos = line.find(" : "); if (pos != std::string::npos) { if (line.length() <= pos + 3) @@ -343,11 +343,11 @@ void ChatTab::chatInput(const std::string &message) return; // Check for item link - std::string::size_type start = msg.find('['); + size_t start = msg.find('['); while (start + 1 < msg.size() && start != std::string::npos && msg[start + 1] != '@') { - std::string::size_type end = msg.find(']', start); + size_t end = msg.find(']', start); if (start + 1 != end && end != std::string::npos) { // Catch multiple embeds and ignore them @@ -440,9 +440,9 @@ int ChatTab::getType() const void ChatTab::addRow(std::string &line) { - std::string::size_type idx = 0; + size_t idx = 0; - for (unsigned int f = 0; f < line.length(); f++) + for (size_t f = 0; f < line.length(); f++) { if (line.at(f) == ' ') { |