diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 18:58:03 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 18:58:03 +0200 |
commit | f8d751440b15990d0779e8387a32e6bf92c33984 (patch) | |
tree | 1f8502530d06c135039c08951c3a607f9bed3c51 /Demos | |
parent | 870bc2a4d1a86b9c889461a3981ee359ff45c15c (diff) | |
download | serenity-f8d751440b15990d0779e8387a32e6bf92c33984.zip |
LibGUI: Convert GRadioButton to ObjectPtr
Diffstat (limited to 'Demos')
-rwxr-xr-x | Demos/WidgetGallery/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index b19fd75a16..8dad129c2d 100755 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -33,9 +33,9 @@ int main(int argc, char** argv) auto* checkbox2 = new GCheckBox("GCheckBox 2", main_widget); checkbox2->set_enabled(false); - auto* radio1 = new GRadioButton("GRadioButton 1", main_widget); + auto radio1 = GRadioButton::construct("GRadioButton 1", main_widget); (void)radio1; - auto* radio2 = new GRadioButton("GRadioButton 2", main_widget); + auto radio2 = GRadioButton::construct("GRadioButton 2", main_widget); radio2->set_enabled(false); auto* button1 = new GButton("GButton 1", main_widget); |