From 4ec8b9f6ee8275782ff425d1815f6b3e7bba0fb8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 26 May 2020 23:45:48 +0200 Subject: [PATCH] LibWeb: Use FlyString in FontCache keys --- Libraries/LibWeb/FontCache.h | 7 ++++--- 1 file 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 #include #include #include 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); private: - FontCache() {} + FontCache() { } mutable HashMap> m_fonts; };