diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-24 18:29:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-24 18:30:16 +0300 |
commit | a316d537dce50f4b4e1e10f5c26a7851baddbd8b (patch) | |
tree | 078de355216db6dab67df9575402cdba7d537dbd /src/commandhandler.cpp | |
parent | cb00b6fe126afe5fff8fc7ff491fda6003ea68f2 (diff) | |
download | mv-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.gz mv-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.bz2 mv-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.tar.xz mv-a316d537dce50f4b4e1e10f5c26a7851baddbd8b.zip |
Small style changes.
Also fix overloaded methods visibility.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index b1df134b0..0cdda3502 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -786,8 +786,7 @@ void CommandHandler::handleFollow(const std::string &args, ChatTab *tab) if (tab->getType() == ChatTab::TAB_WHISPER) { WhisperTab *wTab = static_cast<WhisperTab*>(tab); - if (wTab) - player_node->setFollow(wTab->getNick()); + player_node->setFollow(wTab->getNick()); } } } @@ -804,8 +803,7 @@ void CommandHandler::handleImitation(const std::string &args, ChatTab *tab) else if (tab && tab->getType() == ChatTab::TAB_WHISPER) { WhisperTab *wTab = static_cast<WhisperTab*>(tab); - if (wTab) - player_node->setImitate(wTab->getNick()); + player_node->setImitate(wTab->getNick()); } else { |