From 20727e946194e9bf984fc9b4dd7687a59fc82fc1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Apr 2016 18:06:43 +0300 Subject: Convert chattabtype into strong typed enum. --- src/gui/widgets/tabs/chat/chattab.cpp | 2 +- src/gui/widgets/tabs/chat/chattab.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/tabs/chat') diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index 82be62c8d..3bc323e92 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -67,7 +67,7 @@ ChatTab::ChatTab(const Widget2 *const widget, const std::string &name, const std::string &channel, const std::string &logName, - const ChatTabType::Type &type) : + const ChatTabTypeT &type) : Tab(widget), mTextOutput(new BrowserBox(this, BrowserBox::AUTO_WRAP, true, "browserbox.xml")), diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index 2d40e5769..b1a988a8e 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -63,7 +63,7 @@ class ChatTab notfinal : public Tab const std::string &name, const std::string &channel, const std::string &logName, - const ChatTabType::Type &type); + const ChatTabTypeT &type); A_DELETE_COPY(ChatTab) @@ -138,7 +138,7 @@ class ChatTab notfinal : public Tab /** * Returns type of the being. */ - ChatTabType::Type getType() const A_WARN_UNUSED + ChatTabTypeT getType() const A_WARN_UNUSED { return mType; } void saveToLogFile(const std::string &msg) const; @@ -204,7 +204,7 @@ class ChatTab notfinal : public Tab ScrollArea *mScrollArea; std::string mChannelName; std::string mLogName; - ChatTabType::Type mType; + ChatTabTypeT mType; bool mAllowHightlight; bool mRemoveNames; bool mNoAway; -- cgit v1.2.3-70-g09d2