From ff6ce422ddecb7dcb7fd9f67d3ea0cfdec7e74ea Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 21 Sep 2019 17:05:35 +0200 Subject: LibGUI: Convert GWidget to ObjectPtr --- Applications/About/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Applications/About') diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp index a559505cfc..e14e07d330 100644 --- a/Applications/About/main.cpp +++ b/Applications/About/main.cpp @@ -17,7 +17,7 @@ int main(int argc, char** argv) window->set_resizable(false); window->set_rect(window_rect); - auto* widget = new GWidget; + auto widget = GWidget::construct(); window->set_main_widget(widget); widget->set_fill_with_background_color(true); widget->set_layout(make(Orientation::Vertical)); -- cgit v1.2.3