summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-24 22:04:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-24 22:04:29 +0300
commit7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e (patch)
tree6b440c246a9ed2c3d915c98f6b090a45673a2fb7 /src/gui/windows/chatwindow.h
parent860d3e8e1bbe99b77763d533aebba9fde01e74c6 (diff)
downloadplus-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.tar.gz
plus-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.tar.bz2
plus-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.tar.xz
plus-7ae8a11e0e99ab28730a8ca98388a6ec0ea1923e.zip
Add strong typed bool type TryRemoveColors.
Diffstat (limited to 'src/gui/windows/chatwindow.h')
-rw-r--r--src/gui/windows/chatwindow.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 766e5161e..3077b9e8b 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -26,6 +26,7 @@
#include "enums/gui/chatmsgtype.h"
#include "enums/simpletypes/ignorerecord.h"
+#include "enums/simpletypes/tryremovecolors.h"
#include "gui/widgets/window.h"
@@ -224,20 +225,21 @@ class ChatWindow final : public Window,
bool resortChatLog(std::string line, ChatMsgType::Type own,
const std::string &channel,
const IgnoreRecord ignoreRecord,
- const bool tryRemoveColors);
+ const TryRemoveColors tryRemoveColors);
static void battleChatLog(const std::string &line,
ChatMsgType::Type own
= ChatMsgType::BY_UNKNOWN,
const IgnoreRecord ignoreRecord
= IgnoreRecord_false,
- const bool tryRemoveColors = true);
+ const TryRemoveColors tryRemoveColors
+ = TryRemoveColors_true);
void channelChatLog(const std::string &channel,
const std::string &line,
ChatMsgType::Type own,
const IgnoreRecord ignoreRecord,
- const bool tryRemoveColors);
+ const TryRemoveColors tryRemoveColors);
void updateOnline(const std::set<std::string> &onlinePlayers) const;