summaryrefslogtreecommitdiff
path: root/Applications/About
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 17:05:35 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 17:05:35 +0200
commitff6ce422ddecb7dcb7fd9f67d3ea0cfdec7e74ea (patch)
tree8a66cc12d14da634984978aa387a92537d161915 /Applications/About
parente4e92980a17449abb315e2267c897529f700525e (diff)
downloadserenity-ff6ce422ddecb7dcb7fd9f67d3ea0cfdec7e74ea.zip
LibGUI: Convert GWidget to ObjectPtr
Diffstat (limited to 'Applications/About')
-rw-r--r--Applications/About/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<GBoxLayout>(Orientation::Vertical));