diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 20:04:00 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 20:04:00 +0200 |
commit | defafd72bc771034d615d56fe3fc5f71a7f707e5 (patch) | |
tree | 5cf61389b7315605c61aa345e31464deab35542d /Applications/SoundPlayer/main.cpp | |
parent | 15a66dc8ab850de870f906ce64176ad5a58acf7e (diff) | |
download | serenity-defafd72bc771034d615d56fe3fc5f71a7f707e5.zip |
LibGUI: Convert custom widgets and subclasses to ObjectPtr
Diffstat (limited to 'Applications/SoundPlayer/main.cpp')
-rw-r--r-- | Applications/SoundPlayer/main.cpp | 2 |
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); |