summaryrefslogtreecommitdiff
path: root/Applications/TextEditor
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-21 16:27:54 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-21 16:27:54 +0200
commitf4531c976ce8ea8cceb17d7a75a4635ac5c6ba6f (patch)
treefae083b204e820c839c2787d2436cf333d990768 /Applications/TextEditor
parentb78225941d7b49680f02bba3210296334dd4b532 (diff)
downloadserenity-f4531c976ce8ea8cceb17d7a75a4635ac5c6ba6f.zip
LibGUI: Convert GToolBar to ObjectPtr
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r--Applications/TextEditor/TextEditorWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp
index c98fc39d32..d62b4bdb8e 100644
--- a/Applications/TextEditor/TextEditorWidget.cpp
+++ b/Applications/TextEditor/TextEditorWidget.cpp
@@ -21,7 +21,7 @@ TextEditorWidget::TextEditorWidget()
set_layout(make<GBoxLayout>(Orientation::Vertical));
layout()->set_spacing(0);
- auto* toolbar = new GToolBar(this);
+ auto toolbar = GToolBar::construct(this);
m_editor = GTextEditor::construct(GTextEditor::MultiLine, this);
m_editor->set_ruler_visible(true);
m_editor->set_automatic_indentation_enabled(true);