summaryrefslogtreecommitdiff
path: root/Applications/Taskbar/TaskbarWindow.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 20:04:00 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 20:04:00 +0200
commitdefafd72bc771034d615d56fe3fc5f71a7f707e5 (patch)
tree5cf61389b7315605c61aa345e31464deab35542d /Applications/Taskbar/TaskbarWindow.cpp
parent15a66dc8ab850de870f906ce64176ad5a58acf7e (diff)
downloadserenity-defafd72bc771034d615d56fe3fc5f71a7f707e5.zip
LibGUI: Convert custom widgets and subclasses 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 f4492650f3..2ab9898526 100644
--- a/Applications/Taskbar/TaskbarWindow.cpp
+++ b/Applications/Taskbar/TaskbarWindow.cpp
@@ -48,7 +48,7 @@ void TaskbarWindow::on_screen_rect_change(const Rect& rect)
GButton* TaskbarWindow::create_button(const WindowIdentifier& identifier)
{
- auto* button = new TaskbarButton(identifier, main_widget());
+ auto button = TaskbarButton::construct(identifier, main_widget());
button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
button->set_preferred_size(140, 22);
button->set_checkable(true);