From a316d537dce50f4b4e1e10f5c26a7851baddbd8b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Aug 2012 18:29:30 +0300 Subject: Small style changes. Also fix overloaded methods visibility. --- src/commandhandler.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/commandhandler.cpp') 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(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(tab); - if (wTab) - player_node->setImitate(wTab->getNick()); + player_node->setImitate(wTab->getNick()); } else { -- cgit v1.2.3-60-g2f50