summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/whispertab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:46:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:46:32 +0300
commit11caa7aeeb3a7b40823da8573576d2354b7504b5 (patch)
treefe34c20ea973e65104747b59675acf6363e7b5d2 /src/gui/widgets/tabs/whispertab.cpp
parent0c4ed5a9594b849b436fca13c6992dee923915ed (diff)
downloadplus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.gz
plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.bz2
plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.tar.xz
plus-11caa7aeeb3a7b40823da8573576d2354b7504b5.zip
Add missing const and static into gui classes.
Diffstat (limited to 'src/gui/widgets/tabs/whispertab.cpp')
-rw-r--r--src/gui/widgets/tabs/whispertab.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/whispertab.cpp b/src/gui/widgets/tabs/whispertab.cpp
index 659704638..2d1e2969a 100644
--- a/src/gui/widgets/tabs/whispertab.cpp
+++ b/src/gui/widgets/tabs/whispertab.cpp
@@ -52,10 +52,7 @@ WhisperTab::~WhisperTab()
void WhisperTab::handleInput(const std::string &msg)
{
std::string newMsg;
- if (chatWindow)
- newMsg = chatWindow->doReplace(msg);
- else
- newMsg = msg;
+ newMsg = ChatWindow::doReplace(msg);
Net::getChatHandler()->privateMessage(mNick, newMsg);
if (player_node)