FontEditor: Tighten type of UndoGlyph::undo_state (cannot fail)
This commit is contained in:
parent
bce5a0a00d
commit
1dfb3ff4eb
Notes:
sideshowbarker
2024-07-18 00:58:49 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/1dfb3ff4ebb Pull-request: https://github.com/SerenityOS/serenity/pull/10972
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ public:
|
|||
, m_font(font)
|
||||
{
|
||||
}
|
||||
RefPtr<UndoGlyph> save_state() const
|
||||
NonnullRefPtr<UndoGlyph> 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<UndoGlyph> m_undo_state;
|
||||
NonnullRefPtr<UndoGlyph> m_undo_state;
|
||||
RefPtr<UndoGlyph> m_redo_state;
|
||||
UndoGlyph& m_undo_glyph;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue