Plumb another pointer further...
This commit is contained in:
@ -255,9 +255,9 @@ Layout::Anchor::~Anchor ()
|
|||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|
||||||
Layout::Layout (Platform *platform, bool limit)
|
Layout::Layout (std::unique_ptr< Platform > platform, bool limit)
|
||||||
{
|
{
|
||||||
this->platform = platform;
|
this->platform = platform.release();
|
||||||
view = NULL;
|
view = NULL;
|
||||||
topLevel = NULL;
|
topLevel = NULL;
|
||||||
widgetAtPoint = NULL;
|
widgetAtPoint = NULL;
|
||||||
|
|||||||
@ -260,7 +260,7 @@ private:
|
|||||||
void leaveResizeIdle () { resizeIdleCounter--; }
|
void leaveResizeIdle () { resizeIdleCounter--; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Layout (Platform *platform, bool limit=true);
|
Layout (std::unique_ptr< Platform > platform, bool limit=true);
|
||||||
~Layout ();
|
~Layout ();
|
||||||
|
|
||||||
inline void connectLink (LinkReceiver *receiver)
|
inline void connectLink (LinkReceiver *receiver)
|
||||||
|
|||||||
2
dw/ui.cc
2
dw/ui.cc
@ -345,7 +345,7 @@ void ComplexButtonResource::init (std::unique_ptr< Widget > widget)
|
|||||||
childWidget = widget.get();
|
childWidget = widget.get();
|
||||||
|
|
||||||
/* FIXME: Buttons should not need a full Layout */
|
/* FIXME: Buttons should not need a full Layout */
|
||||||
layout = new Layout (createPlatform ().release(), false);
|
layout = new Layout (createPlatform (), false);
|
||||||
setLayout (layout);
|
setLayout (layout);
|
||||||
DBG_OBJ_ASSOC_CHILD (layout);
|
DBG_OBJ_ASSOC_CHILD (layout);
|
||||||
layout->setWidget (std::move( widget ));
|
layout->setWidget (std::move( widget ));
|
||||||
|
|||||||
Reference in New Issue
Block a user