diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-21 18:06:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-21 18:06:43 +0300 |
commit | 20727e946194e9bf984fc9b4dd7687a59fc82fc1 (patch) | |
tree | 41ab0b6e2cc11be61c7306966815f6a821d905c3 /src/gui/windows | |
parent | e787d4c803476b5d5969dd8578cb8a645a7443cb (diff) | |
download | plus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.gz plus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.bz2 plus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.tar.xz plus-20727e946194e9bf984fc9b4dd7687a59fc82fc1.zip |
Convert chattabtype into strong typed enum.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/chatwindow.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 5bed12f72..d6081f5c6 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -374,7 +374,7 @@ void ChatWindow::nextTab() mChatTabs->setSelectedTabByIndex(tab); } -void ChatWindow::selectTabByType(const ChatTabType::Type &type) +void ChatWindow::selectTabByType(const ChatTabTypeT &type) { if (!mChatTabs) return; @@ -401,7 +401,7 @@ void ChatWindow::closeTab() const mChatTabs->getSelectedTabIndex())); if (!tab) return; - const ChatTabType::Type &type = tab->getType(); + const ChatTabTypeT &type = tab->getType(); if (type == ChatTabType::WHISPER || type == ChatTabType::CHANNEL) tab->handleCommand("close", ""); } diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index 76ca9af02..e8b0dc940 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -294,7 +294,7 @@ class ChatWindow final : public Window, bool isTabPresent(const ChatTab *const tab) const A_WARN_UNUSED; - void selectTabByType(const ChatTabType::Type &type); + void selectTabByType(const ChatTabTypeT &type); void attributeChanged(const AttributesT id, const int oldVal, |