From 1dfb3ff4ebb82dc991f7fd257a5da99d2ceecd7a Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 20 Nov 2021 01:37:31 +0100 Subject: [PATCH] FontEditor: Tighten type of UndoGlyph::undo_state (cannot fail) --- Userland/Applications/FontEditor/UndoGlyph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/FontEditor/UndoGlyph.h b/Userland/Applications/FontEditor/UndoGlyph.h index d5e326107b..eb432d2106 100644 --- a/Userland/Applications/FontEditor/UndoGlyph.h +++ b/Userland/Applications/FontEditor/UndoGlyph.h @@ -17,7 +17,7 @@ public: , m_font(font) { } - RefPtr save_state() const + NonnullRefPtr save_state() const { auto state = adopt_ref(*new UndoGlyph(m_code_point, *m_font)); auto glyph = font().glyph(m_code_point).glyph_bitmap(); @@ -70,7 +70,7 @@ public: } private: - RefPtr m_undo_state; + NonnullRefPtr m_undo_state; RefPtr m_redo_state; UndoGlyph& m_undo_glyph; };