summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-15 21:20:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-17 18:45:56 +0200
commit429a960e157f3375e795cdec8f265ace1c5bdc9e (patch)
treef36bea7935a5e5fb9cd6e57765fed6d8c8690928 /i18npool
parent4417c30d6aa8d415f1f63364bb5dedcd44ae5562 (diff)
elide some OUString allocation
Change-Id: Iadd73477bf3b0edaa0fb7db10f9ffca88fe737e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134476 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/characterclassification/characterclassificationImpl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx
index 8146612a87fc..aff424d8bef7 100644
--- a/i18npool/source/characterclassification/characterclassificationImpl.cxx
+++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx
@@ -32,7 +32,8 @@ namespace i18npool {
CharacterClassificationImpl::CharacterClassificationImpl(
const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext )
{
- if (createLocaleSpecificCharacterClassification("Unicode", Locale()))
+ static constexpr OUStringLiteral sUnicode = u"Unicode";
+ if (createLocaleSpecificCharacterClassification(sUnicode, Locale()))
xUCI = cachedItem->xCI;
}