summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GSpinBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/GSpinBox.cpp')
-rw-r--r--Libraries/LibGUI/GSpinBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GSpinBox.cpp b/Libraries/LibGUI/GSpinBox.cpp
index 8c135ecd49..b55a3709c9 100644
--- a/Libraries/LibGUI/GSpinBox.cpp
+++ b/Libraries/LibGUI/GSpinBox.cpp
@@ -15,12 +15,12 @@ GSpinBox::GSpinBox(GWidget* parent)
else
m_editor->set_text(String::number(m_value));
};
- m_increment_button = new GButton(this);
+ m_increment_button = GButton::construct(this);
m_increment_button->set_focusable(false);
m_increment_button->set_text("\xc3\xb6");
m_increment_button->on_click = [this](GButton&) { set_value(m_value + 1); };
m_increment_button->set_auto_repeat_interval(150);
- m_decrement_button = new GButton(this);
+ m_decrement_button = GButton::construct(this);
m_decrement_button->set_focusable(false);
m_decrement_button->set_text("\xc3\xb7");
m_decrement_button->on_click = [this](GButton&) { set_value(m_value - 1); };