From bcf122e6d80e767bd4546b183f24b46cbbea65f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jul 2016 17:14:30 +0300 Subject: Simplify BeingPopup class. --- src/gui/popups/beingpopup.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/gui/popups/beingpopup.h') diff --git a/src/gui/popups/beingpopup.h b/src/gui/popups/beingpopup.h index 8a11e1e10..f72e268ff 100644 --- a/src/gui/popups/beingpopup.h +++ b/src/gui/popups/beingpopup.h @@ -24,6 +24,8 @@ #include "gui/widgets/popup.h" +#include + class Being; class Label; @@ -57,15 +59,10 @@ class BeingPopup final : public Popup #endif private: + void addLabels(const int fontHeight); + Label *mBeingName A_NONNULLPOINTER; - Label *mBeingParty A_NONNULLPOINTER; - Label *mBeingGuild A_NONNULLPOINTER; - Label *mBeingRank A_NONNULLPOINTER; - Label *mBeingComment A_NONNULLPOINTER; - Label *mBeingBuyBoard A_NONNULLPOINTER; - Label *mBeingSellBoard A_NONNULLPOINTER; - Label *mBeingRoom A_NONNULLPOINTER; - Label *mBeingEffects A_NONNULLPOINTER; + std::vector mLabels; }; extern BeingPopup *beingPopup; -- cgit v1.2.3-70-g09d2