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; };