diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 01:11:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 01:11:50 +0300 |
commit | b42cc5c01d3bdd274d9b9e90aad574d865c4e67a (patch) | |
tree | a88981f53929b4608b6110fd266aebbc311ccbcc /src/gui/widgets/tabs/chat/chattab.cpp | |
parent | 2e07a7af24cf8a2928ab6a3431ab5b01b29969bb (diff) | |
download | plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.gz plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.bz2 plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.xz plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.zip |
Convert ChatMsgType enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/tabs/chat/chattab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index 58f8ec019..a795e8ea1 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -107,7 +107,7 @@ ChatTab::~ChatTab() } void ChatTab::chatLog(std::string line, - ChatMsgType::Type own, + ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) { @@ -358,7 +358,7 @@ void ChatTab::chatLog(const std::string &nick, std::string msg) if (!localPlayer) return; - const ChatMsgType::Type byWho = (nick == localPlayer->getName() + const ChatMsgTypeT byWho = (nick == localPlayer->getName() ? ChatMsgType::BY_PLAYER : ChatMsgType::BY_OTHER); if (byWho == ChatMsgType::BY_OTHER && config.getBoolValue("removeColors")) msg = removeColors(msg); |