diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:15:11 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:15:11 +0200 |
commit | b78225941d7b49680f02bba3210296334dd4b532 (patch) | |
tree | 7d9c0e57702e10cc740992a7b64970e0c17ceb7e /Demos/WidgetGallery | |
parent | 83b5f6c11a7bd3da5c771b2182b4096e23a75287 (diff) | |
download | serenity-b78225941d7b49680f02bba3210296334dd4b532.zip |
LibGUI: Convert GSpinBox to ObjectPtr
Diffstat (limited to 'Demos/WidgetGallery')
-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 f26372ed22..64cbe9657d 100755 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -61,9 +61,9 @@ int main(int argc, char** argv) textbox2->set_text("GTextBox 2"); textbox2->set_enabled(false); - auto* spinbox1 = new GSpinBox(main_widget); + auto spinbox1 = GSpinBox::construct(main_widget); (void)spinbox1; - auto* spinbox2 = new GSpinBox(main_widget); + auto spinbox2 = GSpinBox::construct(main_widget); spinbox2->set_enabled(false); auto* vertical_slider_container = new GWidget(main_widget); |