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/windows/chatwindow.h | |
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/windows/chatwindow.h')
-rw-r--r-- | src/gui/windows/chatwindow.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index 90c743284..766e5161e 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -25,6 +25,8 @@ #include "enums/gui/chatmsgtype.h" +#include "enums/simpletypes/ignorerecord.h" + #include "gui/widgets/window.h" #include "gui/widgets/tabs/chat/chattabtype.h" @@ -221,19 +223,20 @@ class ChatWindow final : public Window, bool resortChatLog(std::string line, ChatMsgType::Type own, const std::string &channel, - const bool ignoreRecord, + const IgnoreRecord ignoreRecord, const bool tryRemoveColors); static void battleChatLog(const std::string &line, ChatMsgType::Type own = ChatMsgType::BY_UNKNOWN, - const bool ignoreRecord = false, + const IgnoreRecord ignoreRecord + = IgnoreRecord_false, const bool tryRemoveColors = true); void channelChatLog(const std::string &channel, const std::string &line, ChatMsgType::Type own, - const bool ignoreRecord, + const IgnoreRecord ignoreRecord, const bool tryRemoveColors); void updateOnline(const std::set<std::string> &onlinePlayers) const; |