From cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Sep 2012 19:28:16 +0300 Subject: Add const to variables with type size_t. --- src/guildmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/guildmanager.cpp') 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) -- cgit v1.2.3-60-g2f50