summaryrefslogtreecommitdiff
path: root/Demos/WidgetGallery
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 /Demos/WidgetGallery
parent55a6e4ac0b610d720393425c8b6597c5c56a782f (diff)
downloadserenity-45cfd57f6ed5959fb3badb1fb243277a5ccb1d38.zip
GButton: Convert most code to using ObjectPtr for GButton
Diffstat (limited to 'Demos/WidgetGallery')
-rwxr-xr-xDemos/WidgetGallery/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp
index 4d73456d03..99a4329f34 100755
--- a/Demos/WidgetGallery/main.cpp
+++ b/Demos/WidgetGallery/main.cpp
@@ -38,9 +38,9 @@ int main(int argc, char** argv)
auto radio2 = GRadioButton::construct("GRadioButton 2", main_widget);
radio2->set_enabled(false);
- auto* button1 = new GButton("GButton 1", main_widget);
+ auto button1 = GButton::construct("GButton 1", main_widget);
(void)button1;
- auto* button2 = new GButton("GButton 2", main_widget);
+ auto button2 = GButton::construct("GButton 2", main_widget);
button2->set_enabled(false);
auto progress1 = GProgressBar::construct(main_widget);