diff options
author | Arnaud VERSINI <arnaud.versini@pm.me> | 2024-05-01 17:27:46 +0200 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@pm.me> | 2024-07-14 15:00:25 +0200 |
commit | be1c9ee5b3fd326d16f41c45a53123053507687e (patch) | |
tree | b7aacb3c43253331f6b1d5b2160ebda311ab6a32 | |
parent | cfe6ce1656754776568be5b30217efc08aa70dc0 (diff) |
i18npool : use new OUtring literals
Change-Id: I2000f4c5409d988c9030e2eec70247d8f79059e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166970
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
Tested-by: Jenkins
-rw-r--r-- | i18npool/source/characterclassification/characterclassificationImpl.cxx | 3 | ||||
-rw-r--r-- | i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx index e317638d4650..161b39e39d8e 100644 --- a/i18npool/source/characterclassification/characterclassificationImpl.cxx +++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx @@ -32,8 +32,7 @@ namespace i18npool { CharacterClassificationImpl::CharacterClassificationImpl( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext ) { - static constexpr OUStringLiteral sUnicode = u"Unicode"; - if (createLocaleSpecificCharacterClassification(sUnicode, Locale())) + if (createLocaleSpecificCharacterClassification(u"Unicode"_ustr, Locale())) xUCI = cachedItem->xCI; } diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index 1ba942ca3b51..980356b0c4f5 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -461,8 +461,7 @@ static void lcl_formatPersianWord( sal_Int32 nNumber, OUString& rsResult ) { OUStringBuffer aTemp(64); - static constexpr OUStringLiteral asPersianWord_conjunction_data = u" \u0648 "; - OUString asPersianWord_conjunction( asPersianWord_conjunction_data ); + OUString asPersianWord_conjunction = u" \u0648 "_ustr; unsigned char nSection = 0; while (int nPart = nNumber % 1000) |