summaryrefslogtreecommitdiff
path: root/Applications/SoundPlayer/main.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/SoundPlayer/main.cpp
parent15a66dc8ab850de870f906ce64176ad5a58acf7e (diff)
downloadserenity-defafd72bc771034d615d56fe3fc5f71a7f707e5.zip
LibGUI: Convert custom widgets and subclasses to ObjectPtr
Diffstat (limited to 'Applications/SoundPlayer/main.cpp')
-rw-r--r--Applications/SoundPlayer/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp
index 657551fe27..35cd32ae13 100644
--- a/Applications/SoundPlayer/main.cpp
+++ b/Applications/SoundPlayer/main.cpp
@@ -41,7 +41,7 @@ int main(int argc, char** argv)
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
widget->layout()->set_margins({ 2, 2, 2, 2 });
- auto* sample_widget = new SampleWidget(widget);
+ auto sample_widget = SampleWidget::construct(widget);
auto button = GButton::construct("Quit", widget);
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);