diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-16 11:03:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-17 10:49:21 +0200 |
commit | dac29c278531d5474289eb54aa03987c4958ac83 (patch) | |
tree | 25b32b704b15e1aa89fbd1f6a83d5f25db9169d6 /include/unotools | |
parent | fbad565fcb5ee8d20a1a83838e66b43aeb23bfa4 (diff) |
speedup toUpperCase when called in parallel
by removing locking from CharClass, which means we need to make it an
immutable class
Since SharedStringPool in sc/ stores a pointer to the CharClass in
use, we have to tweak SvtSysLocale so that the object does not change
location.
Change-Id: I2c62d354fa542ebc04e755ce5b9b9e2ddff76a64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122185
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools')
-rw-r--r-- | include/unotools/charclass.hxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/unotools/charclass.hxx b/include/unotools/charclass.hxx index 521f3abe003b..f3c81a18e51b 100644 --- a/include/unotools/charclass.hxx +++ b/include/unotools/charclass.hxx @@ -62,7 +62,6 @@ class UNOTOOLS_DLLPUBLIC CharClass { LanguageTag maLanguageTag; css::uno::Reference< css::i18n::XCharacterClassification > xCC; - mutable std::mutex aMutex; CharClass(const CharClass&) = delete; CharClass& operator=(const CharClass&) = delete; @@ -79,9 +78,6 @@ public: ~CharClass(); - /// set a new Locale - void setLanguageTag( const LanguageTag& rLanguageTag ); - /// get current Locale const LanguageTag& getLanguageTag() const; |