From df338f41694df0fb3327a554bd4db6841b5a191f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 14:42:11 +0300 Subject: Move partyTab variable definition from net code into partytab class. --- src/gui/widgets/tabs/chat/partytab.cpp | 2 ++ src/net/ea/partyhandler.cpp | 2 -- src/net/ea/partyhandler.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/widgets/tabs/chat/partytab.cpp b/src/gui/widgets/tabs/chat/partytab.cpp index 88357aa6a..23c3a7bff 100644 --- a/src/gui/widgets/tabs/chat/partytab.cpp +++ b/src/gui/widgets/tabs/chat/partytab.cpp @@ -39,6 +39,8 @@ #include "debug.h" +PartyTab *partyTab = nullptr; + PartyTab::PartyTab(const Widget2 *const widget) : // TRANSLATORS: party chat tab name ChatTab(widget, _("Party"), "") diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index bc72a0043..425ba7793 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -41,8 +41,6 @@ #include "debug.h" -PartyTab *partyTab = nullptr; - namespace Ea { diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h index b595891c4..e18e8551a 100644 --- a/src/net/ea/partyhandler.h +++ b/src/net/ea/partyhandler.h @@ -85,6 +85,4 @@ extern Party *taParty; } // namespace Ea -extern PartyTab *partyTab; - #endif // NET_EA_PARTYHANDLER_H -- cgit v1.2.3-70-g09d2