diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 19:21:36 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 19:21:36 +0200 |
commit | 55a6e4ac0b610d720393425c8b6597c5c56a782f (patch) | |
tree | 6fb85b5d080b46f348eff9c637c2552ffb3b4202 /Applications/Taskbar/TaskbarWindow.cpp | |
parent | 7b5342b2e301ad75f3c88c617680d2c29ae332ce (diff) | |
download | serenity-55a6e4ac0b610d720393425c8b6597c5c56a782f.zip |
LibGUI: Convert GFrame to ObjectPtr
Diffstat (limited to 'Applications/Taskbar/TaskbarWindow.cpp')
-rw-r--r-- | Applications/Taskbar/TaskbarWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Taskbar/TaskbarWindow.cpp b/Applications/Taskbar/TaskbarWindow.cpp index c39ce4938f..f4492650f3 100644 --- a/Applications/Taskbar/TaskbarWindow.cpp +++ b/Applications/Taskbar/TaskbarWindow.cpp @@ -21,7 +21,7 @@ TaskbarWindow::TaskbarWindow() GDesktop::the().on_rect_change = [this](const Rect& rect) { on_screen_rect_change(rect); }; - auto* widget = new GFrame; + auto widget = GFrame::construct(); widget->set_fill_with_background_color(true); widget->set_layout(make<GBoxLayout>(Orientation::Horizontal)); widget->layout()->set_margins({ 3, 2, 3, 2 }); |