summaryrefslogtreecommitdiff
path: root/Demos/HelloWorld/main.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 /Demos/HelloWorld/main.cpp
parent6b347747f2f912721bc076fcd4aabb8a4bfa9e98 (diff)
downloadserenity-c7437f9caa5485d99e0101bfac98d968e767741f.zip
LibGUI: Convert GLabel to ObjectPtr
Diffstat (limited to 'Demos/HelloWorld/main.cpp')
-rw-r--r--Demos/HelloWorld/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/HelloWorld/main.cpp b/Demos/HelloWorld/main.cpp
index 0bc320d9bd..6b06b9ed5b 100644
--- a/Demos/HelloWorld/main.cpp
+++ b/Demos/HelloWorld/main.cpp
@@ -20,7 +20,7 @@ int main(int argc, char** argv)
main_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
main_widget->layout()->set_margins({ 4, 4, 4, 4 });
- auto* label = new GLabel(main_widget);
+ auto label = GLabel::construct(main_widget);
label->set_text("Hello\nWorld!");
auto* button = new GButton(main_widget);