diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2019-09-24 17:37:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 09:28:31 +0200 |
commit | b13421011d9377676e1adc282634991d5064a866 (patch) | |
tree | e1e73c7c200fa119dd5860d65b6fa1a4cbb814ac /vcl/source/font/PhysicalFontCollection.cxx | |
parent | 4d960908094292c9bac925976ac489c46a6127e9 (diff) |
better data structures for some static const vars
use compact, cache-friendly structures for some static const stuff
and add a std::initialiser_list constructor to o3tl::sorted_vector
Change-Id: I6a6049bf19a7f48dae1843a81cd2257944ada9d5
Reviewed-on: https://gerrit.libreoffice.org/79470
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/font/PhysicalFontCollection.cxx')
-rw-r--r-- | vcl/source/font/PhysicalFontCollection.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx index 1ca86d1fd884..00b06f589ad8 100644 --- a/vcl/source/font/PhysicalFontCollection.cxx +++ b/vcl/source/font/PhysicalFontCollection.cxx @@ -920,7 +920,7 @@ std::unique_ptr<ImplDeviceFontSizeList> PhysicalFontCollection::GetDeviceFontSiz // These are the metric-compatible replacement fonts that are bundled with // LibreOffice, we prefer them over generic substitutions that might be // provided by the system. -static const std::map<OUString, OUString> aMetricCompatibleMap = +static const std::vector<std::pair<OUString, OUString>> aMetricCompatibleMap = { { "Times New Roman", "Liberation Serif" }, { "Arial", "Liberation Sans" }, |