summaryrefslogtreecommitdiff
path: root/Demos/WidgetGallery/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/WidgetGallery/main.cpp')
-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 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);