summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-21 18:06:43 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-21 18:06:43 +0300
commit20727e946194e9bf984fc9b4dd7687a59fc82fc1 (patch)
tree41ab0b6e2cc11be61c7306966815f6a821d905c3 /src/gui/widgets/tabs
parente787d4c803476b5d5969dd8578cb8a645a7443cb (diff)
downloadmanaverse-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.gz
manaverse-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.bz2
manaverse-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.xz
manaverse-20727e946194e9bf984fc9b4dd7687a59fc82fc1.zip
Convert chattabtype into strong typed enum.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp2
-rw-r--r--src/gui/widgets/tabs/chat/chattab.h6
2 files changed, 4 insertions, 4 deletions
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;