Ownership of Platform in part of the code.
This commit is contained in:
@ -631,8 +631,8 @@ static BrowserWindow *UIcmd_tab_new(CustTabs *tabs, UI *old_ui, int focus)
|
||||
UI *new_ui = tabs->add_new_tab(old_ui, focus);
|
||||
|
||||
// Now create the Dw render layout and viewport
|
||||
FltkPlatform *platform = new FltkPlatform ();
|
||||
Layout *layout = new Layout (platform);
|
||||
auto platform = std::make_unique< FltkPlatform >();
|
||||
Layout *layout = new Layout (std::move( platform ));
|
||||
style::Color *bgColor = style::Color::create (layout, prefs.bg_color);
|
||||
layout->setBgColor (bgColor);
|
||||
layout->setBgImage (NULL, style::BACKGROUND_REPEAT,
|
||||
|
||||
Reference in New Issue
Block a user