Widen the unique pointer a bit more.

This commit is contained in:
2025-04-18 05:20:26 -04:00
parent f4e70bfa75
commit f63c1209a9
4 changed files with 10 additions and 8 deletions

View File

@ -85,7 +85,9 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web,
dw->setStyle (styleEngine.style (Web->bw));
/* This method frees the old dw if any */
layout->setWidget(dw);
std::unique_ptr< Widget > dw_unique;
dw_unique.reset( dw );
layout->setWidget(std::move( dw_unique ));
/* Set the page title with the bare filename (e.g. for images),
* HTML pages with a <TITLE> tag will overwrite it later */