summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush/ColorDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/PaintBrush/ColorDialog.cpp')
-rw-r--r--Applications/PaintBrush/ColorDialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/PaintBrush/ColorDialog.cpp b/Applications/PaintBrush/ColorDialog.cpp
index c05c24dd8b..703c2c7fc3 100644
--- a/Applications/PaintBrush/ColorDialog.cpp
+++ b/Applications/PaintBrush/ColorDialog.cpp
@@ -53,7 +53,7 @@ void ColorDialog::build()
};
auto make_spinbox = [&](RGBComponent component, int initial_value) {
- auto* spinbox = new GSpinBox(left_vertical_container);
+ auto spinbox = GSpinBox::construct(left_vertical_container);
spinbox->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
spinbox->set_preferred_size(0, 20);
spinbox->set_min(0);