summaryrefslogtreecommitdiff
path: root/Applications/Taskbar/TaskbarWindow.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 19:21:36 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 19:21:36 +0200
commit55a6e4ac0b610d720393425c8b6597c5c56a782f (patch)
tree6fb85b5d080b46f348eff9c637c2552ffb3b4202 /Applications/Taskbar/TaskbarWindow.cpp
parent7b5342b2e301ad75f3c88c617680d2c29ae332ce (diff)
downloadserenity-55a6e4ac0b610d720393425c8b6597c5c56a782f.zip
LibGUI: Convert GFrame to ObjectPtr
Diffstat (limited to 'Applications/Taskbar/TaskbarWindow.cpp')
-rw-r--r--Applications/Taskbar/TaskbarWindow.cpp2
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 });