diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 14:19:05 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 15:25:08 +0200 |
commit | c7437f9caa5485d99e0101bfac98d968e767741f (patch) | |
tree | 0268e791f6d419da644eca6fc6789e5429c10848 /Libraries/LibGUI/GInputBox.cpp | |
parent | 6b347747f2f912721bc076fcd4aabb8a4bfa9e98 (diff) | |
download | serenity-c7437f9caa5485d99e0101bfac98d968e767741f.zip |
LibGUI: Convert GLabel to ObjectPtr
Diffstat (limited to 'Libraries/LibGUI/GInputBox.cpp')
-rw-r--r-- | Libraries/LibGUI/GInputBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GInputBox.cpp b/Libraries/LibGUI/GInputBox.cpp index 39e7012522..cb75b12795 100644 --- a/Libraries/LibGUI/GInputBox.cpp +++ b/Libraries/LibGUI/GInputBox.cpp @@ -34,7 +34,7 @@ void GInputBox::build() widget->layout()->set_margins({ 8, 8, 8, 8 }); widget->layout()->set_spacing(8); - auto* label = new GLabel(m_prompt, widget); + auto label = GLabel::construct(m_prompt, widget); label->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed); label->set_preferred_size(text_width, 16); |