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/windows/chatwindow.cpp | 8 ++++---- src/gui/windows/chatwindow.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 31b874032..f79f8b45d 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1037,7 +1037,7 @@ void ChatWindow::setVisible(Visible visible) void ChatWindow::addWhisper(const std::string &restrict nick, const std::string &restrict mes, - const ChatMsgType::Type own) + const ChatMsgTypeT own) { if (mes.empty() || !localPlayer) return; @@ -1512,7 +1512,7 @@ std::string ChatWindow::autoCompleteHistory(const std::string &partName) const } bool ChatWindow::resortChatLog(std::string line, - ChatMsgType::Type own, + ChatMsgTypeT own, const std::string &channel, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) @@ -1677,7 +1677,7 @@ bool ChatWindow::resortChatLog(std::string line, return true; } -void ChatWindow::battleChatLog(const std::string &line, ChatMsgType::Type own, +void ChatWindow::battleChatLog(const std::string &line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) { @@ -1691,7 +1691,7 @@ void ChatWindow::battleChatLog(const std::string &line, ChatMsgType::Type own, void ChatWindow::channelChatLog(const std::string &channel, const std::string &line, - ChatMsgType::Type own, + ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) { diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index 76e932525..1952909d4 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -195,7 +195,7 @@ class ChatWindow final : public Window, void addWhisper(const std::string &restrict nick, const std::string &restrict mes, - const ChatMsgType::Type own = ChatMsgType::BY_OTHER); + const ChatMsgTypeT own = ChatMsgType::BY_OTHER); WhisperTab *addWhisperTab(const std::string &caption, const std::string &nick, @@ -223,13 +223,13 @@ class ChatWindow final : public Window, void ignoreAllWhispers(); - bool resortChatLog(std::string line, ChatMsgType::Type own, + bool resortChatLog(std::string line, ChatMsgTypeT own, const std::string &channel, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors); static void battleChatLog(const std::string &line, - ChatMsgType::Type own + ChatMsgTypeT own = ChatMsgType::BY_UNKNOWN, const IgnoreRecord ignoreRecord = IgnoreRecord_false, @@ -238,7 +238,7 @@ class ChatWindow final : public Window, void channelChatLog(const std::string &channel, const std::string &line, - ChatMsgType::Type own, + ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors); -- cgit v1.2.3-60-g2f50