summaryrefslogtreecommitdiff
path: root/Applications/SoundPlayer/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 19:28:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 19:28:28 +0200
commit45cfd57f6ed5959fb3badb1fb243277a5ccb1d38 (patch)
tree532a17aef29c371b77c206ee3fa2f067113a448e /Applications/SoundPlayer/main.cpp
parent55a6e4ac0b610d720393425c8b6597c5c56a782f (diff)
downloadserenity-45cfd57f6ed5959fb3badb1fb243277a5ccb1d38.zip
GButton: Convert most code to using ObjectPtr for GButton
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 26a64f42d5..657551fe27 100644
--- a/Applications/SoundPlayer/main.cpp
+++ b/Applications/SoundPlayer/main.cpp
@@ -43,7 +43,7 @@ int main(int argc, char** argv)
auto* sample_widget = new SampleWidget(widget);
- auto* button = new GButton("Quit", widget);
+ auto button = GButton::construct("Quit", widget);
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
button->set_preferred_size(0, 20);
button->on_click = [&](auto&) {