summaryrefslogtreecommitdiff
path: root/i18npool/source/defaultnumberingprovider
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-09 11:28:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-09 12:48:08 +0200
commit43f4c075740671450766f632f2ddab5dc3563d3d (patch)
treee25e44bdeb015c300ffe913047cc2023669c42cc /i18npool/source/defaultnumberingprovider
parent0479f870e05d5d231d2d57aaeedff11544bd370c (diff)
loplugin:ostr in i18npool
Change-Id: I0176d93b38788e28fa42baad293597f98eaa7a21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167378 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/source/defaultnumberingprovider')
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index 1caca1b3d054..a1630a1cc2bd 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -1166,7 +1166,7 @@ OUString DefaultNumberingProvider::makeNumberingIdentifier(sal_Int16 index)
return OUString(aSupportedTypes[index].cSymbol, strlen(aSupportedTypes[index].cSymbol), RTL_TEXTENCODING_UTF8);
else {
OUStringBuffer result;
- Locale aLocale("en", OUString(), OUString());
+ Locale aLocale(u"en"_ustr, OUString(), OUString());
Sequence<beans::PropertyValue> aProperties(2);
auto aPropertiesRange = asNonConstRange(aProperties);
aPropertiesRange[0].Name = "NumberingType";
@@ -1210,11 +1210,11 @@ DefaultNumberingProvider::isScriptFlagEnabled(const OUString& aName)
uno::Sequence<uno::Any> aArgs(comphelper::InitAnyPropertySequence(
{
- {"nodepath", uno::Any(OUString("/org.openoffice.Office.Common/I18N"))}
+ {"nodepath", uno::Any(u"/org.openoffice.Office.Common/I18N"_ustr)}
}));
Reference<XInterface> xInterface = xConfigProvider->createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationAccess", aArgs);
+ u"com.sun.star.configuration.ConfigurationAccess"_ustr, aArgs);
xHierarchicalNameAccess.set(xInterface, UNO_QUERY_THROW);
}
@@ -1233,8 +1233,8 @@ Sequence< sal_Int16 > DefaultNumberingProvider::getSupportedNumberingTypes( )
Sequence< sal_Int16 > aRet(nSupported_NumberingTypes );
sal_Int16* pArray = aRet.getArray();
- bool cjkEnabled = isScriptFlagEnabled("CJK/CJKFont");
- bool ctlEnabled = isScriptFlagEnabled("CTL/CTLFont");
+ bool cjkEnabled = isScriptFlagEnabled(u"CJK/CJKFont"_ustr);
+ bool ctlEnabled = isScriptFlagEnabled(u"CTL/CTLFont"_ustr);
for(sal_Int16 i = 0; i < nSupported_NumberingTypes; i++) {
if ( (aSupportedTypes[i].langOption & LANG_ALL) ||
@@ -1283,7 +1283,7 @@ OUString DefaultNumberingProvider::getNumberingIdentifier( sal_Int16 nNumberingT
OUString DefaultNumberingProvider::getImplementationName()
{
- return "com.sun.star.text.DefaultNumberingProvider";
+ return u"com.sun.star.text.DefaultNumberingProvider"_ustr;
}
sal_Bool DefaultNumberingProvider::supportsService(const OUString& rServiceName)
@@ -1293,7 +1293,7 @@ sal_Bool DefaultNumberingProvider::supportsService(const OUString& rServiceName)
Sequence< OUString > DefaultNumberingProvider::getSupportedServiceNames()
{
- Sequence< OUString > aRet { "com.sun.star.text.DefaultNumberingProvider" };
+ Sequence< OUString > aRet { u"com.sun.star.text.DefaultNumberingProvider"_ustr };
return aRet;
}