diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-16 19:28:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-16 19:28:16 +0300 |
commit | cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 (patch) | |
tree | fdda7e2c3d93b35771f6eb79c22dce9301082f19 /src/guildmanager.cpp | |
parent | f8fc3380197c078a6dcff02351d835c3022411e1 (diff) | |
download | manaverse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.gz manaverse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.bz2 manaverse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.tar.xz manaverse-cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96.zip |
Add const to variables with type size_t.
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r-- | src/guildmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp index 29b438fea..df5c4f6da 100644 --- a/src/guildmanager.cpp +++ b/src/guildmanager.cpp @@ -272,7 +272,7 @@ bool GuildManager::process(std::string msg) if (!guild) return false; // logger->log("welcome message: %s", msg.c_str()); - size_t pos = msg.find("! ("); + const size_t pos = msg.find("! ("); if (pos == std::string::npos) return false; msg = msg.substr(0, pos); @@ -400,7 +400,7 @@ bool GuildManager::process(std::string msg) } if (mTab) { - size_t pos = msg.find(": ", 0); + const size_t pos = msg.find(": ", 0); if (pos != std::string::npos) { std::string sender_name = ((pos == std::string::npos) |