diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 17:05:35 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 17:05:35 +0200 |
commit | ff6ce422ddecb7dcb7fd9f67d3ea0cfdec7e74ea (patch) | |
tree | 8a66cc12d14da634984978aa387a92537d161915 /Applications/Terminal | |
parent | e4e92980a17449abb315e2267c897529f700525e (diff) | |
download | serenity-ff6ce422ddecb7dcb7fd9f67d3ea0cfdec7e74ea.zip |
LibGUI: Convert GWidget to ObjectPtr
Diffstat (limited to 'Applications/Terminal')
-rw-r--r-- | Applications/Terminal/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index 8304cd0b25..55971ad5e1 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -94,7 +94,7 @@ GWindow* create_settings_window(TerminalWidget& terminal, RefPtr<CConfigFile> co window->set_title("Terminal Settings"); window->set_rect(50, 50, 200, 140); - auto* settings = new GWidget; + auto settings = GWidget::construct(); window->set_main_widget(settings); settings->set_fill_with_background_color(true); settings->set_layout(make<GBoxLayout>(Orientation::Vertical)); |