diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 19:28:28 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 19:28:28 +0200 |
commit | 45cfd57f6ed5959fb3badb1fb243277a5ccb1d38 (patch) | |
tree | 532a17aef29c371b77c206ee3fa2f067113a448e /Libraries/LibGUI/GInputBox.cpp | |
parent | 55a6e4ac0b610d720393425c8b6597c5c56a782f (diff) | |
download | serenity-45cfd57f6ed5959fb3badb1fb243277a5ccb1d38.zip |
GButton: Convert most code to using ObjectPtr for GButton
Diffstat (limited to 'Libraries/LibGUI/GInputBox.cpp')
-rw-r--r-- | Libraries/LibGUI/GInputBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GInputBox.cpp b/Libraries/LibGUI/GInputBox.cpp index 8989ba19f9..483cb12045 100644 --- a/Libraries/LibGUI/GInputBox.cpp +++ b/Libraries/LibGUI/GInputBox.cpp @@ -51,7 +51,7 @@ void GInputBox::build() button_container_inner->set_layout(make<GBoxLayout>(Orientation::Horizontal)); button_container_inner->layout()->set_spacing(8); - m_cancel_button = new GButton(button_container_inner); + m_cancel_button = GButton::construct(button_container_inner); m_cancel_button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); m_cancel_button->set_preferred_size(0, 20); m_cancel_button->set_text("Cancel"); @@ -60,7 +60,7 @@ void GInputBox::build() done(ExecCancel); }; - m_ok_button = new GButton(button_container_inner); + m_ok_button = GButton::construct(button_container_inner); m_ok_button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed); m_ok_button->set_preferred_size(0, 20); m_ok_button->set_text("OK"); |