diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-06 00:04:33 +0300 |
commit | 7b155f111daf5d7ae477b16d0f0789b1113bea74 (patch) | |
tree | 2d2711ab1f9daed793171383af1a7e1fa6ff737c /src/gui/socialwindow.cpp | |
parent | c3afff20d4989ab2835545715bbe67e5b5d9b353 (diff) | |
download | manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.gz manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.bz2 manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.tar.xz manaplus-7b155f111daf5d7ae477b16d0f0789b1113bea74.zip |
Fix some issues after auto checking.
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r-- | src/gui/socialwindow.cpp | 25 |
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); |