Widen the unique pointer a bit more.
This commit is contained in:
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user