summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gui/partytab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/gui/partytab.cpp')
-rw-r--r--src/net/tmwa/gui/partytab.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/net/tmwa/gui/partytab.cpp b/src/net/tmwa/gui/partytab.cpp
index 89f3a769..6f1e3b68 100644
--- a/src/net/tmwa/gui/partytab.cpp
+++ b/src/net/tmwa/gui/partytab.cpp
@@ -42,10 +42,6 @@ PartyTab::PartyTab() :
setTabColor(&Theme::getThemeColor(Theme::PARTY_CHAT_TAB));
}
-PartyTab::~PartyTab()
-{
-}
-
void PartyTab::handleInput(const std::string &msg)
{
Net::getPartyHandler()->chat(msg);
@@ -197,9 +193,7 @@ bool PartyTab::handleCommand(const std::string &type, const std::string &args)
void PartyTab::getAutoCompleteList(std::vector<std::string> &names) const
{
- Party *p = local_player->getParty();
-
- if (p)
+ if (Party *p = local_player->getParty())
p->getNames(names);
}