diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-24 21:49:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-24 21:49:22 +0300 |
commit | 860d3e8e1bbe99b77763d533aebba9fde01e74c6 (patch) | |
tree | 7c87dfc372592507ce0a574aff115f209daefd08 /src/gui/widgets/tabs/chat/chattab.cpp | |
parent | 4749c8977e2e803692bd844b5400f8d72cbaf17f (diff) | |
download | manaplus-860d3e8e1bbe99b77763d533aebba9fde01e74c6.tar.gz manaplus-860d3e8e1bbe99b77763d533aebba9fde01e74c6.tar.bz2 manaplus-860d3e8e1bbe99b77763d533aebba9fde01e74c6.tar.xz manaplus-860d3e8e1bbe99b77763d533aebba9fde01e74c6.zip |
Add strong typed bool type IgnoreRecord.
Diffstat (limited to 'src/gui/widgets/tabs/chat/chattab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index bd3759c65..072ab677e 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -106,8 +106,10 @@ ChatTab::~ChatTab() delete2(mScrollArea); } -void ChatTab::chatLog(std::string line, ChatMsgType::Type own, - const bool ignoreRecord, const bool tryRemoveColors) +void ChatTab::chatLog(std::string line, + ChatMsgType::Type own, + const IgnoreRecord ignoreRecord, + const bool tryRemoveColors) { // Trim whitespace trim(line); @@ -359,7 +361,10 @@ void ChatTab::chatLog(const std::string &nick, std::string msg) ? ChatMsgType::BY_PLAYER : ChatMsgType::BY_OTHER); if (byWho == ChatMsgType::BY_OTHER && config.getBoolValue("removeColors")) msg = removeColors(msg); - chatLog(std::string(nick).append(" : ").append(msg), byWho, false, false); + chatLog(std::string(nick).append(" : ").append(msg), + byWho, + IgnoreRecord_false, + false); } void ChatTab::chatInput(const std::string &message) |