summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GInputBox.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 14:19:05 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 15:25:08 +0200
commitc7437f9caa5485d99e0101bfac98d968e767741f (patch)
tree0268e791f6d419da644eca6fc6789e5429c10848 /Libraries/LibGUI/GInputBox.cpp
parent6b347747f2f912721bc076fcd4aabb8a4bfa9e98 (diff)
downloadserenity-c7437f9caa5485d99e0101bfac98d968e767741f.zip
LibGUI: Convert GLabel to ObjectPtr
Diffstat (limited to 'Libraries/LibGUI/GInputBox.cpp')
-rw-r--r--Libraries/LibGUI/GInputBox.cpp2
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);