summaryrefslogtreecommitdiff
path: root/include/svl/numformat.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-17 16:03:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-17 21:26:26 +0200
commit82689553221e1f8ceab62d72a27b31902d45f436 (patch)
tree17078ac4de66192ca44a66214ea081c094e421e6 /include/svl/numformat.hxx
parent54906a9b925dee3fd0076e9d258a82c223d62520 (diff)
create OnDemandCharClass cache
and use it in SvNumberFormatter for situations where we are rapidly switching locales (e.g. spreadsheet with alternating locales on adjacent rows) Change-Id: Ic35fdbbfbdc960673e91a37efed1d0e12c1a0751 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122264 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl/numformat.hxx')
-rw-r--r--include/svl/numformat.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svl/numformat.hxx b/include/svl/numformat.hxx
index a851032ef47c..4026ff71e4a4 100644
--- a/include/svl/numformat.hxx
+++ b/include/svl/numformat.hxx
@@ -563,7 +563,7 @@ private:
std::unique_ptr<SvNumberFormatTable> pFormatTable; // For the UI dialog
std::unique_ptr<SvNumberFormatterIndexTable>
pMergeTable; // List of indices for merging two formatters
- std::optional<CharClass> oCharClass; // CharacterClassification
+ OnDemandCharClass xCharClass; // CharacterClassification
OnDemandLocaleDataWrapper xLocaleData; // LocaleData switched between SYSTEM, ENGLISH and other
OnDemandTransliterationWrapper xTransliteration; // Transliteration loaded on demand
OnDemandCalendarWrapper xCalendar; // Calendar loaded on demand