diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-26 23:45:48 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-26 23:45:48 +0200 |
commit | 4ec8b9f6ee8275782ff425d1815f6b3e7bba0fb8 (patch) | |
tree | f3da5801fcce68da2e1fbedf97ec0670d5780863 /Libraries | |
parent | 82444048dee97c677466ed76a43582ffb409c5f3 (diff) | |
download | serenity-4ec8b9f6ee8275782ff425d1815f6b3e7bba0fb8.zip |
LibWeb: Use FlyString in FontCache keys
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/FontCache.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibWeb/FontCache.h b/Libraries/LibWeb/FontCache.h index 159d7221e5..2a88f706e8 100644 --- a/Libraries/LibWeb/FontCache.h +++ b/Libraries/LibWeb/FontCache.h @@ -26,13 +26,14 @@ #pragma once +#include <AK/FlyString.h> #include <AK/HashMap.h> #include <AK/String.h> #include <LibGfx/Forward.h> struct FontSelector { - String family; - String weight; + FlyString family; + FlyString weight; bool operator==(const FontSelector& other) const { @@ -54,6 +55,6 @@ public: void set(const FontSelector&, NonnullRefPtr<Gfx::Font>); private: - FontCache() {} + FontCache() { } mutable HashMap<FontSelector, NonnullRefPtr<Gfx::Font>> m_fonts; }; |