LibGfx: Return family names by reference to avoid unnecessairy cloning

This commit is contained in:
Jonne Ransijn 2024-10-26 23:27:21 +02:00 committed by Andreas Kling
commit ec5ea0d686
Notes: github-actions[bot] 2024-11-20 14:39:14 +00:00
6 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@ public:
Optional<Percentage> ascent_override() const { return m_ascent_override; }
Optional<Percentage> descent_override() const { return m_descent_override; }
FontDisplay font_display() const { return m_font_display; }
FlyString font_family() const { return m_font_family; }
FlyString const& font_family() const { return m_font_family; }
Optional<OrderedHashMap<FlyString, i64>> font_feature_settings() const { return m_font_feature_settings; }
Optional<FlyString> font_language_override() const { return m_font_language_override; }
Optional<FlyString> font_named_instance() const { return m_font_named_instance; }