Plumb another pointer further...

This commit is contained in:
2025-04-18 18:36:52 -04:00
parent b1ac6cde6d
commit 4ba2146cd1
3 changed files with 4 additions and 4 deletions

View File

@ -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;
topLevel = NULL;
widgetAtPoint = NULL;

View File

@ -260,7 +260,7 @@ private:
void leaveResizeIdle () { resizeIdleCounter--; }
public:
Layout (Platform *platform, bool limit=true);
Layout (std::unique_ptr< Platform > platform, bool limit=true);
~Layout ();
inline void connectLink (LinkReceiver *receiver)

View File

@ -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 ().release(), false);
layout = new Layout (createPlatform (), false);
setLayout (layout);
DBG_OBJ_ASSOC_CHILD (layout);
layout->setWidget (std::move( widget ));