From 418d749f0d4889904d0b91e825a87e70a08d134c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 11:19:17 +0300 Subject: Remove getter for partyHandler. --- src/net/ea/gui/partytab.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp index 96b52b5e1..937245fc9 100644 --- a/src/net/ea/gui/partytab.cpp +++ b/src/net/ea/gui/partytab.cpp @@ -66,7 +66,7 @@ PartyTab::~PartyTab() void PartyTab::handleInput(const std::string &msg) { - Net::getPartyHandler()->chat(ChatWindow::doReplace(msg)); + partyHandler->chat(ChatWindow::doReplace(msg)); } bool PartyTab::handleCommand(const std::string &restrict type, @@ -81,26 +81,26 @@ bool PartyTab::handleCommand(const std::string &restrict type, } else { - Net::getPartyHandler()->create(args); + partyHandler->create(args); } } else if (type == "invite") { - Net::getPartyHandler()->invite(args); + partyHandler->invite(args); } else if (type == "leave") { - Net::getPartyHandler()->leave(); + partyHandler->leave(); } else if (type == "kick") { - Net::getPartyHandler()->kick(args); + partyHandler->kick(args); } else if (type == "item") { if (args.empty()) { - switch (Net::getPartyHandler()->getShareItems()) + switch (partyHandler->getShareItems()) { case Net::PartyShare::YES: // TRANSLATORS: chat message @@ -132,11 +132,11 @@ bool PartyTab::handleCommand(const std::string &restrict type, switch (opt) { case 1: - Net::getPartyHandler()->setShareItems( + partyHandler->setShareItems( Net::PartyShare::YES); break; case 0: - Net::getPartyHandler()->setShareItems( + partyHandler->setShareItems( Net::PartyShare::NO); break; case -1: @@ -150,7 +150,7 @@ bool PartyTab::handleCommand(const std::string &restrict type, { if (args.empty()) { - switch (Net::getPartyHandler()->getShareExperience()) + switch (partyHandler->getShareExperience()) { case Net::PartyShare::YES: // TRANSLATORS: chat message @@ -182,11 +182,11 @@ bool PartyTab::handleCommand(const std::string &restrict type, switch (opt) { case 1: - Net::getPartyHandler()->setShareExperience( + partyHandler->setShareExperience( Net::PartyShare::YES); break; case 0: - Net::getPartyHandler()->setShareExperience( + partyHandler->setShareExperience( Net::PartyShare::NO); break; case -1: @@ -199,7 +199,7 @@ bool PartyTab::handleCommand(const std::string &restrict type, else if (type == "setleader" && Net::getServerFeatures()->haveChangePartyLeader()) { - Net::getPartyHandler()->changeLeader(args); + partyHandler->changeLeader(args); } else { -- cgit v1.2.3-70-g09d2