From 433b6678c6496439dfacf4fba3acf9c2e6904533 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 11 Jul 2019 16:02:55 +0200 Subject: [PATCH] FontEditor: Remove use of copy_ref(). --- Applications/FontEditor/FontEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/FontEditor/FontEditor.cpp b/Applications/FontEditor/FontEditor.cpp index 90d9563907..8d289082ca 100644 --- a/Applications/FontEditor/FontEditor.cpp +++ b/Applications/FontEditor/FontEditor.cpp @@ -77,12 +77,12 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr&& edited_fon width_spinbox->set_relative_rect({ 5, 155, m_glyph_editor_widget->preferred_width(), 20 }); auto* demo_label_1 = new GLabel(this); - demo_label_1->set_font(m_edited_font.copy_ref()); + demo_label_1->set_font(m_edited_font); demo_label_1->set_text("quick fox jumps nightly above wizard."); demo_label_1->set_relative_rect({ 110, 120, 300, 20 }); auto* demo_label_2 = new GLabel(this); - demo_label_2->set_font(m_edited_font.copy_ref()); + demo_label_2->set_font(m_edited_font); demo_label_2->set_text("QUICK FOX JUMPS NIGHTLY ABOVE WIZARD!"); demo_label_2->set_relative_rect({ 110, 140, 300, 20 });