summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2024-04-01 16:21:05 +0200
committerArnaud Versini <arnaud.versini@pm.me>2024-04-03 12:59:48 +0200
commit6182f236a27d6f12527daa7fba82ddc56f95f0d3 (patch)
treeca893e06fd602c7f27adbf850558f491f1d6529a /i18npool
parent5266c1b215263029fe9b35e5365df65d116edf64 (diff)
i18npool : use OUString literal for XInterface implementation
Change-Id: I7843e1e873c9272c8ad3eb4cad0b2ea48cafeb7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165638 Tested-by: Jenkins Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/breakiterator/breakiteratorImpl.cxx4
-rw-r--r--i18npool/source/calendar/calendarImpl.cxx4
-rw-r--r--i18npool/source/characterclassification/cclass_unicode.cxx4
-rw-r--r--i18npool/source/characterclassification/characterclassificationImpl.cxx4
-rw-r--r--i18npool/source/characterclassification/unoscripttypedetector.cxx4
-rw-r--r--i18npool/source/collator/collatorImpl.cxx4
-rw-r--r--i18npool/source/localedata/localedata.cxx6
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx2
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx4
-rw-r--r--i18npool/source/search/textsearch.cxx4
-rw-r--r--i18npool/source/textconversion/textconversionImpl.cxx4
-rw-r--r--i18npool/source/transliteration/transliterationImpl.cxx4
-rw-r--r--i18npool/source/transliteration/transliteration_commonclass.cxx2
13 files changed, 25 insertions, 25 deletions
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx
index df2c298ca388..5a2304757603 100644
--- a/i18npool/source/breakiterator/breakiteratorImpl.cxx
+++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx
@@ -661,7 +661,7 @@ BreakIteratorImpl::getLocaleSpecificBreakIterator(const Locale& rLocale)
OUString SAL_CALL
BreakIteratorImpl::getImplementationName()
{
- return "com.sun.star.i18n.BreakIterator";
+ return u"com.sun.star.i18n.BreakIterator"_ustr;
}
sal_Bool SAL_CALL
@@ -673,7 +673,7 @@ BreakIteratorImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
BreakIteratorImpl::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.BreakIterator" };
+ return { u"com.sun.star.i18n.BreakIterator"_ustr };
}
}
diff --git a/i18npool/source/calendar/calendarImpl.cxx b/i18npool/source/calendar/calendarImpl.cxx
index 4e364696cf20..1dde59ef2b55 100644
--- a/i18npool/source/calendar/calendarImpl.cxx
+++ b/i18npool/source/calendar/calendarImpl.cxx
@@ -350,7 +350,7 @@ CalendarImpl::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativ
OUString SAL_CALL
CalendarImpl::getImplementationName()
{
- return "com.sun.star.i18n.CalendarImpl";
+ return u"com.sun.star.i18n.CalendarImpl"_ustr;
}
sal_Bool SAL_CALL
@@ -362,7 +362,7 @@ CalendarImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
CalendarImpl::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.LocaleCalendar", "com.sun.star.i18n.LocaleCalendar2" };
+ return { u"com.sun.star.i18n.LocaleCalendar"_ustr, u"com.sun.star.i18n.LocaleCalendar2"_ustr };
}
}
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx
index e3c27e9bc0fa..2884cfb62adc 100644
--- a/i18npool/source/characterclassification/cclass_unicode.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode.cxx
@@ -282,7 +282,7 @@ ParseResult SAL_CALL cclass_Unicode::parsePredefinedToken(
OUString SAL_CALL cclass_Unicode::getImplementationName()
{
- return "com.sun.star.i18n.CharacterClassification_Unicode";
+ return u"com.sun.star.i18n.CharacterClassification_Unicode"_ustr;
}
sal_Bool SAL_CALL cclass_Unicode::supportsService(const OUString& rServiceName)
@@ -292,7 +292,7 @@ sal_Bool SAL_CALL cclass_Unicode::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL cclass_Unicode::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.CharacterClassification_Unicode" };
+ return { u"com.sun.star.i18n.CharacterClassification_Unicode"_ustr };
}
}
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx
index aff424d8bef7..e317638d4650 100644
--- a/i18npool/source/characterclassification/characterclassificationImpl.cxx
+++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx
@@ -191,7 +191,7 @@ CharacterClassificationImpl::getLocaleSpecificCharacterClassification(const Loca
OUString SAL_CALL
CharacterClassificationImpl::getImplementationName()
{
- return "com.sun.star.i18n.CharacterClassification";
+ return u"com.sun.star.i18n.CharacterClassification"_ustr;
}
sal_Bool SAL_CALL
@@ -203,7 +203,7 @@ CharacterClassificationImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
CharacterClassificationImpl::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.CharacterClassification" };
+ return { u"com.sun.star.i18n.CharacterClassification"_ustr };
}
}
diff --git a/i18npool/source/characterclassification/unoscripttypedetector.cxx b/i18npool/source/characterclassification/unoscripttypedetector.cxx
index 1d48ed864724..aef7497613ca 100644
--- a/i18npool/source/characterclassification/unoscripttypedetector.cxx
+++ b/i18npool/source/characterclassification/unoscripttypedetector.cxx
@@ -63,7 +63,7 @@ UnoScriptTypeDetector::endOfCTLScriptType( const OUString&, sal_Int32 )
OUString SAL_CALL
UnoScriptTypeDetector::getImplementationName()
{
- return "com.sun.star.i18n.ScriptTypeDetector";
+ return u"com.sun.star.i18n.ScriptTypeDetector"_ustr;
}
sal_Bool SAL_CALL
@@ -75,7 +75,7 @@ UnoScriptTypeDetector::supportsService(const OUString& ServiceName)
css::uno::Sequence< OUString > SAL_CALL
UnoScriptTypeDetector::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.ScriptTypeDetector" };
+ return { u"com.sun.star.i18n.ScriptTypeDetector"_ustr };
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
diff --git a/i18npool/source/collator/collatorImpl.cxx b/i18npool/source/collator/collatorImpl.cxx
index fff944d6ff7e..5e5510587d19 100644
--- a/i18npool/source/collator/collatorImpl.cxx
+++ b/i18npool/source/collator/collatorImpl.cxx
@@ -207,7 +207,7 @@ CollatorImpl::loadCachedCollator(const lang::Locale& rLocale, const OUString& rS
OUString SAL_CALL CollatorImpl::getImplementationName()
{
- return "com.sun.star.i18n.Collator";
+ return u"com.sun.star.i18n.Collator"_ustr;
}
sal_Bool SAL_CALL CollatorImpl::supportsService(const OUString& rServiceName)
@@ -218,7 +218,7 @@ sal_Bool SAL_CALL CollatorImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
CollatorImpl::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.Collator" };
+ return { u"com.sun.star.i18n.Collator"_ustr };
}
}
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 01bd4ad59e33..64350b9532d3 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -1521,7 +1521,7 @@ sal_Bool OutlineNumbering::hasElements( )
OUString SAL_CALL
LocaleDataImpl::getImplementationName()
{
- return "com.sun.star.i18n.LocaleDataImpl";
+ return u"com.sun.star.i18n.LocaleDataImpl"_ustr;
}
sal_Bool SAL_CALL LocaleDataImpl::supportsService(const OUString& rServiceName)
@@ -1533,8 +1533,8 @@ Sequence< OUString > SAL_CALL
LocaleDataImpl::getSupportedServiceNames()
{
Sequence< OUString > aRet {
- "com.sun.star.i18n.LocaleData",
- "com.sun.star.i18n.LocaleData2"
+ u"com.sun.star.i18n.LocaleData"_ustr,
+ u"com.sun.star.i18n.LocaleData2"_ustr
};
return aRet;
}
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 0618f30059de..f57cc2022e2e 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -1259,7 +1259,7 @@ NativeNumberSupplierService::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
NativeNumberSupplierService::getSupportedServiceNames()
{
- return {implementationName, "com.sun.star.i18n.NativeNumberSupplier2"};
+ return {implementationName, u"com.sun.star.i18n.NativeNumberSupplier2"_ustr};
}
}
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx
index c20ed5b20edc..5562c301a300 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -240,7 +240,7 @@ NumberFormatCodeMapper::mapElementUsageStringToShort(std::u16string_view formatU
OUString SAL_CALL
NumberFormatCodeMapper::getImplementationName()
{
- return "com.sun.star.i18n.NumberFormatCodeMapper";
+ return u"com.sun.star.i18n.NumberFormatCodeMapper"_ustr;
}
sal_Bool SAL_CALL NumberFormatCodeMapper::supportsService(const OUString& rServiceName)
@@ -251,7 +251,7 @@ sal_Bool SAL_CALL NumberFormatCodeMapper::supportsService(const OUString& rServi
css::uno::Sequence< OUString > SAL_CALL
NumberFormatCodeMapper::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.NumberFormatMapper" };
+ return { u"com.sun.star.i18n.NumberFormatMapper"_ustr };
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx
index a16c3e1cc4c7..816e162c1e6e 100644
--- a/i18npool/source/search/textsearch.cxx
+++ b/i18npool/source/search/textsearch.cxx
@@ -1543,7 +1543,7 @@ SearchResult TextSearch::WildcardSrchBkwrd( const OUString& searchStr, sal_Int32
OUString SAL_CALL
TextSearch::getImplementationName()
{
- return "com.sun.star.util.TextSearch_i18n";
+ return u"com.sun.star.util.TextSearch_i18n"_ustr;
}
sal_Bool SAL_CALL TextSearch::supportsService(const OUString& rServiceName)
@@ -1554,7 +1554,7 @@ sal_Bool SAL_CALL TextSearch::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
TextSearch::getSupportedServiceNames()
{
- return { "com.sun.star.util.TextSearch", "com.sun.star.util.TextSearch2" };
+ return { u"com.sun.star.util.TextSearch"_ustr, u"com.sun.star.util.TextSearch2"_ustr };
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx
index fbdbc1501e8c..af5bb288fe45 100644
--- a/i18npool/source/textconversion/textconversionImpl.cxx
+++ b/i18npool/source/textconversion/textconversionImpl.cxx
@@ -104,7 +104,7 @@ TextConversionImpl::getLocaleSpecificTextConversion(const Locale& rLocale)
OUString SAL_CALL
TextConversionImpl::getImplementationName()
{
- return "com.sun.star.i18n.TextConversion";
+ return u"com.sun.star.i18n.TextConversion"_ustr;
}
sal_Bool SAL_CALL
@@ -116,7 +116,7 @@ TextConversionImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
TextConversionImpl::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.TextConversion" };
+ return { u"com.sun.star.i18n.TextConversion"_ustr };
}
}
diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx
index 914a401031f1..c5b6d9cf5cce 100644
--- a/i18npool/source/transliteration/transliterationImpl.cxx
+++ b/i18npool/source/transliteration/transliterationImpl.cxx
@@ -654,7 +654,7 @@ TransliterationImpl::loadModuleByName( std::u16string_view implName,
OUString SAL_CALL
TransliterationImpl::getImplementationName()
{
- return "com.sun.star.i18n.Transliteration";
+ return u"com.sun.star.i18n.Transliteration"_ustr;
}
sal_Bool SAL_CALL
@@ -666,7 +666,7 @@ TransliterationImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
TransliterationImpl::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.Transliteration" };
+ return { u"com.sun.star.i18n.Transliteration"_ustr };
}
}
diff --git a/i18npool/source/transliteration/transliteration_commonclass.cxx b/i18npool/source/transliteration/transliteration_commonclass.cxx
index 054ae60e220c..625a8a9177ab 100644
--- a/i18npool/source/transliteration/transliteration_commonclass.cxx
+++ b/i18npool/source/transliteration/transliteration_commonclass.cxx
@@ -127,7 +127,7 @@ sal_Bool SAL_CALL transliteration_commonclass::supportsService(const OUString& r
Sequence< OUString > SAL_CALL transliteration_commonclass::getSupportedServiceNames()
{
- return { "com.sun.star.i18n.Transliteration.l10n" };
+ return { u"com.sun.star.i18n.Transliteration.l10n"_ustr };
}
}