mirror of https://github.com/axmolengine/axmol.git
issue #5183, remove in class member initialization
This commit is contained in:
parent
634fea7c45
commit
8112962778
|
@ -66,7 +66,13 @@ public:
|
||||||
class RelativeLayoutExecutant : public LayoutExecutant
|
class RelativeLayoutExecutant : public LayoutExecutant
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RelativeLayoutExecutant(){};
|
RelativeLayoutExecutant()
|
||||||
|
:_unlayoutChildCount(0),
|
||||||
|
_widget(nullptr),
|
||||||
|
_finalPositionX(0.0f),
|
||||||
|
_finalPositionY(0.0f),
|
||||||
|
_relativeWidgetLP(nullptr)
|
||||||
|
{}
|
||||||
virtual ~RelativeLayoutExecutant(){};
|
virtual ~RelativeLayoutExecutant(){};
|
||||||
static RelativeLayoutExecutant* create();
|
static RelativeLayoutExecutant* create();
|
||||||
virtual void doLayout(LayoutProtocol *layout) override;
|
virtual void doLayout(LayoutProtocol *layout) override;
|
||||||
|
@ -77,13 +83,13 @@ protected:
|
||||||
bool caculateFinalPositionWithRelativeWidget(LayoutProtocol *layout);
|
bool caculateFinalPositionWithRelativeWidget(LayoutProtocol *layout);
|
||||||
void caculateFinalPositionWithRelativeAlign();
|
void caculateFinalPositionWithRelativeAlign();
|
||||||
|
|
||||||
ssize_t _unlayoutChildCount = 0;
|
ssize_t _unlayoutChildCount;
|
||||||
Vector<Widget*> _widgetChildren;
|
Vector<Widget*> _widgetChildren;
|
||||||
Widget* _widget = nullptr;
|
Widget* _widget;
|
||||||
float _finalPositionX = 0.0;
|
float _finalPositionX;
|
||||||
float _finalPositionY = 0.0;
|
float _finalPositionY;
|
||||||
|
|
||||||
RelativeLayoutParameter* _relativeWidgetLP = nullptr;
|
RelativeLayoutParameter* _relativeWidgetLP;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue