diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:27:54 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-21 16:27:54 +0200 |
commit | f4531c976ce8ea8cceb17d7a75a4635ac5c6ba6f (patch) | |
tree | fae083b204e820c839c2787d2436cf333d990768 /Applications/TextEditor | |
parent | b78225941d7b49680f02bba3210296334dd4b532 (diff) | |
download | serenity-f4531c976ce8ea8cceb17d7a75a4635ac5c6ba6f.zip |
LibGUI: Convert GToolBar to ObjectPtr
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.cpp | 2 |
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); |