From b42cc5c01d3bdd274d9b9e90aad574d865c4e67a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 01:11:50 +0300 Subject: Convert ChatMsgType enum into strong typed enum. --- src/gui/widgets/tabs/chat/chattab.cpp | 4 ++-- src/gui/widgets/tabs/chat/chattab.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/tabs') 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); diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index df3c7913f..56d51b097 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -80,7 +80,7 @@ class ChatTab notfinal : public Tab * @param removeColors try remove color if configured */ void chatLog(std::string line, - ChatMsgType::Type own, + ChatMsgTypeT own, const IgnoreRecord ignoreRecord = IgnoreRecord_false, const TryRemoveColors tryRemoveColors = TryRemoveColors_true); -- cgit v1.2.3-70-g09d2