From c7437f9caa5485d99e0101bfac98d968e767741f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 21 Sep 2019 14:19:05 +0200 Subject: LibGUI: Convert GLabel to ObjectPtr --- Libraries/LibGUI/GInputBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibGUI/GInputBox.cpp') 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); -- cgit v1.2.3