diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-02 17:00:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-02 21:16:56 +0300 |
commit | fb1709d774139b2173da6ee95770abaad23f726e (patch) | |
tree | a6e6530dd623de4f6719a190eb6d9f19da20f027 /src/guildmanager.cpp | |
parent | f06505b08060ad0720653fdf21fcc306ca93eb13 (diff) | |
download | mv-fb1709d774139b2173da6ee95770abaad23f726e.tar.gz mv-fb1709d774139b2173da6ee95770abaad23f726e.tar.bz2 mv-fb1709d774139b2173da6ee95770abaad23f726e.tar.xz mv-fb1709d774139b2173da6ee95770abaad23f726e.zip |
Some fixes after coverity checks.
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r-- | src/guildmanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp index eb56c2fc0..180758cf7 100644 --- a/src/guildmanager.cpp +++ b/src/guildmanager.cpp @@ -431,8 +431,7 @@ bool GuildManager::process(std::string msg) const size_t pos = msg.find(": ", 0); if (pos != std::string::npos) { - const std::string sender_name = ((pos == std::string::npos) - ? "" : msg.substr(0, pos)); + const std::string sender_name = msg.substr(0, pos); if (!guild->getMember(sender_name)) { mTab->chatLog(msg); |