summaryrefslogtreecommitdiff
path: root/DevTools/VisualBuilder/VBWidgetRegistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevTools/VisualBuilder/VBWidgetRegistry.cpp')
-rw-r--r--DevTools/VisualBuilder/VBWidgetRegistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/VisualBuilder/VBWidgetRegistry.cpp b/DevTools/VisualBuilder/VBWidgetRegistry.cpp
index 8961b55690..e3b9ca25a5 100644
--- a/DevTools/VisualBuilder/VBWidgetRegistry.cpp
+++ b/DevTools/VisualBuilder/VBWidgetRegistry.cpp
@@ -107,7 +107,7 @@ static GWidget* build_gwidget(VBWidgetType type, GWidget* parent)
return bar;
}
case VBWidgetType::GSlider: {
- auto* slider = new GSlider(Orientation::Horizontal, parent);
+ auto slider = GSlider::construct(Orientation::Horizontal, parent);
slider->set_range(0, 100);
slider->set_value(50);
return slider;