summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GSpinBox.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 19:28:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 19:28:28 +0200
commit45cfd57f6ed5959fb3badb1fb243277a5ccb1d38 (patch)
tree532a17aef29c371b77c206ee3fa2f067113a448e /Libraries/LibGUI/GSpinBox.cpp
parent55a6e4ac0b610d720393425c8b6597c5c56a782f (diff)
downloadserenity-45cfd57f6ed5959fb3badb1fb243277a5ccb1d38.zip
GButton: Convert most code to using ObjectPtr for GButton
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); };