summaryrefslogtreecommitdiff
path: root/vcl/inc/unx/fontmanager.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-08-01 19:10:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-02 08:12:44 +0200
commit39a6740b9b8ebea2cb169392a1cce95bf0633f6e (patch)
treec4c412308d9971a88ed6fcd4e834612383f5d30c /vcl/inc/unx/fontmanager.hxx
parentda468c92cfd93c810a79ce7769832367df4ea2b8 (diff)
std::set->o3tl::sorted_vector for m_aFontFileToFontID
sorted_vector is perfect for small sets of small objects, and fontId is an int. Change-Id: I6955ae1a8793c47cf79b3080e566d7b50896b3e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155192 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/unx/fontmanager.hxx')
-rw-r--r--vcl/inc/unx/fontmanager.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/unx/fontmanager.hxx b/vcl/inc/unx/fontmanager.hxx
index 89bf5508879b..21a8d00aa415 100644
--- a/vcl/inc/unx/fontmanager.hxx
+++ b/vcl/inc/unx/fontmanager.hxx
@@ -22,6 +22,7 @@
#include <sal/config.h>
#include <config_options.h>
+#include <o3tl/sorted_vector.hxx>
#include <tools/fontenum.hxx>
#include <vcl/dllapi.h>
#include <vcl/timer.hxx>
@@ -115,7 +116,7 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
fontID m_nNextFontID;
std::unordered_map< fontID, PrintFont > m_aFonts;
// for speeding up findFontFileID
- std::unordered_map< OString, std::set< fontID > >
+ std::unordered_map< OString, o3tl::sorted_vector< fontID > >
m_aFontFileToFontID;
std::unordered_map< OString, int >