1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

FontEditor: Rename m_edited_font => m_font and remove getter

Pithier and it matches the naming convention used in FontEditor's
child widgets. Since it was never used outside MainWidget and there
will soon be no guarantee that m_font is nonnull, the public
BitmapFont& getter has also been removed.
This commit is contained in:
thankyouverycool 2023-05-10 17:00:47 -04:00 committed by Andreas Kling
parent 1ee78c40ae
commit ea8bcb2f30
2 changed files with 64 additions and 66 deletions

View file

@ -34,7 +34,6 @@ public:
bool request_close();
String const& path() { return m_path; }
Gfx::BitmapFont const& edited_font() { return *m_edited_font; }
private:
MainWidget() = default;
@ -69,8 +68,6 @@ private:
void show_error(Error, StringView action, StringView basename = {});
RefPtr<Gfx::BitmapFont> m_edited_font;
RefPtr<GUI::GlyphMapWidget> m_glyph_map_widget;
RefPtr<GlyphEditorWidget> m_glyph_editor_widget;
@ -144,6 +141,7 @@ private:
RefPtr<GUI::Window> m_font_preview_window;
String m_path;
RefPtr<Gfx::BitmapFont> m_font;
Vector<String> m_font_weight_list;
Vector<String> m_font_slope_list;
Vector<String> m_unicode_block_list;