Expand a bit of ownership...
This commit is contained in:
2
dw/ui.cc
2
dw/ui.cc
@ -345,7 +345,7 @@ void ComplexButtonResource::init (std::unique_ptr< Widget > widget)
|
||||
childWidget = widget.get();
|
||||
|
||||
/* FIXME: Buttons should not need a full Layout */
|
||||
layout = new Layout (createPlatform (), false);
|
||||
layout = new Layout (createPlatform ().release(), false);
|
||||
setLayout (layout);
|
||||
DBG_OBJ_ASSOC_CHILD (layout);
|
||||
layout->setWidget (std::move( widget ));
|
||||
|
Reference in New Issue
Block a user