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

@ -85,7 +85,7 @@ public:
virtual float width(StringView) const = 0;
virtual float width(Utf8View const&) const = 0;
virtual FlyString family() const = 0;
virtual FlyString const& family() const = 0;
virtual NonnullRefPtr<Font> with_size(float point_size) const = 0;