summaryrefslogtreecommitdiff
path: root/src/gui/socialwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r--src/gui/socialwindow.cpp25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp
index f0e332529..6ba80ea4e 100644
--- a/src/gui/socialwindow.cpp
+++ b/src/gui/socialwindow.cpp
@@ -420,10 +420,9 @@ public:
class SocialPlayersTab : public SocialTab
{
public:
- SocialPlayersTab(std::string name)
+ SocialPlayersTab(std::string name) :
+ mBeings(new BeingsListModal())
{
- mBeings = new BeingsListModal();
-
mList = new AvatarListBox(mBeings);
mScroll = new ScrollArea(mList);
@@ -586,10 +585,9 @@ private:
class SocialNavigationTab : public SocialTab
{
public:
- SocialNavigationTab()
+ SocialNavigationTab() :
+ mBeings(new BeingsListModal())
{
- mBeings = new BeingsListModal();
-
mList = new AvatarListBox(mBeings);
mScroll = new ScrollArea(mList);
@@ -919,10 +917,9 @@ protected:
class SocialAttackTab : public SocialTab
{
public:
- SocialAttackTab()
+ SocialAttackTab() :
+ mBeings(new BeingsListModal())
{
- mBeings = new BeingsListModal();
-
mList = new AvatarListBox(mBeings);
mScroll = new ScrollArea(mList);
@@ -974,10 +971,9 @@ private:
class SocialPickupTab : public SocialTab
{
public:
- SocialPickupTab()
+ SocialPickupTab() :
+ mBeings(new BeingsListModal())
{
- mBeings = new BeingsListModal();
-
mList = new AvatarListBox(mBeings);
mScroll = new ScrollArea(mList);
@@ -1029,10 +1025,9 @@ private:
class SocialFriendsTab : public SocialTab
{
public:
- SocialFriendsTab(std::string name)
+ SocialFriendsTab(std::string name) :
+ mBeings(new BeingsListModal())
{
- mBeings = new BeingsListModal();
-
mList = new AvatarListBox(mBeings);
mScroll = new ScrollArea(mList);