summaryrefslogtreecommitdiff
path: root/Applications/About
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/About
parent55a6e4ac0b610d720393425c8b6597c5c56a782f (diff)
downloadserenity-45cfd57f6ed5959fb3badb1fb243277a5ccb1d38.zip
GButton: Convert most code to using ObjectPtr for GButton
Diffstat (limited to 'Applications/About')
-rw-r--r--Applications/About/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp
index 803593c090..bd83fff9e6 100644
--- a/Applications/About/main.cpp
+++ b/Applications/About/main.cpp
@@ -44,7 +44,7 @@ int main(int argc, char** argv)
version_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
version_label->set_preferred_size(0, 11);
- auto* quit_button = new GButton(widget);
+ auto quit_button = GButton::construct(widget);
quit_button->set_text("Okay");
quit_button->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
quit_button->set_preferred_size(100, 20);