diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:13 +0100 |
commit | e875ef0364c8e5c076648f64b8813512deebdc8c (patch) | |
tree | aa2f81c7a2630b2b9af3f7b430bf7ec882c1f78f /i18npool | |
parent | 69ef5d40c27f033cc60ef9fd563edbb0e81fbeaf (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I2c65eac8aa0b24be7f0c8a083b21904c842ca1ee
Diffstat (limited to 'i18npool')
7 files changed, 13 insertions, 13 deletions
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index e5458b0a9001..114afbef9807 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -591,7 +591,7 @@ BreakIteratorImpl::getLocaleSpecificBreakIterator(const Locale& rLocale) throw ( // load service with name <base>_<lang> createLocaleSpecificBreakIterator(rLocale.Language)) || // load default service with name <base>_Unicode - createLocaleSpecificBreakIterator(OUString("Unicode"))) { + createLocaleSpecificBreakIterator("Unicode")) { lookupTable.push_back( new lookupTableItem(aLocale, xBI) ); return xBI; } diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx index e3b383399510..0b94421846f8 100644 --- a/i18npool/source/calendar/calendar_gregorian.cxx +++ b/i18npool/source/calendar/calendar_gregorian.cxx @@ -202,7 +202,7 @@ Calendar_hanja::loadCalendar( const OUString& /*uniqueID*/, const css::lang::Loc { // Since this class could be called by service name 'hanja_yoil', we have to // rename uniqueID to get right calendar defined in locale data. - Calendar_gregorian::loadCalendar(OUString("hanja"), rLocale); + Calendar_gregorian::loadCalendar("hanja", rLocale); } static const Era gengou_eraArray[] = { diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx index 78648cd6ee98..cebf37eaa8f7 100644 --- a/i18npool/source/characterclassification/characterclassificationImpl.cxx +++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx @@ -30,7 +30,7 @@ namespace com { namespace sun { namespace star { namespace i18n { CharacterClassificationImpl::CharacterClassificationImpl( const Reference < uno::XComponentContext >& rxContext ) : m_xContext( rxContext ) { - if (createLocaleSpecificCharacterClassification(OUString("Unicode"), Locale())) + if (createLocaleSpecificCharacterClassification("Unicode", Locale())) xUCI = cachedItem->xCI; } diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index 04975ffb57c1..75b22f323e2c 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -1006,8 +1006,8 @@ Sequence< sal_Int16 > DefaultNumberingProvider::getSupportedNumberingTypes( ) Sequence< sal_Int16 > aRet(nSupported_NumberingTypes ); sal_Int16* pArray = aRet.getArray(); - bool cjkEnabled = isScriptFlagEnabled(OUString("CJK/CJKFont")); - bool ctlEnabled = isScriptFlagEnabled(OUString("CTL/CTLFont")); + bool cjkEnabled = isScriptFlagEnabled("CJK/CJKFont"); + bool ctlEnabled = isScriptFlagEnabled("CTL/CTLFont"); for(sal_Int16 i = 0; i < nSupported_NumberingTypes; i++) { if ( (aSupportedTypes[i].langOption & LANG_ALL) || diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index e4b793519cd9..e2dcd8ff65b2 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -1632,7 +1632,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && daysNode == NULL) { - of.writeParameter("dayRef", OUString("ref"), i); + of.writeParameter("dayRef", "ref", i); of.writeParameter("dayRefName", ref_name, i); nbOfDays[i] = 0; } else { @@ -1665,7 +1665,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && monthsNode == NULL) { - of.writeParameter("monthRef", OUString("ref"), i); + of.writeParameter("monthRef", "ref", i); of.writeParameter("monthRefName", ref_name, i); nbOfMonths[i] = 0; } else { @@ -1701,7 +1701,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && genitiveMonthsNode == NULL) { - of.writeParameter("genitiveMonthRef", OUString("ref"), i); + of.writeParameter("genitiveMonthRef", "ref", i); of.writeParameter("genitiveMonthRefName", ref_name, i); nbOfGenitiveMonths[i] = 0; } else { @@ -1738,7 +1738,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && partitiveMonthsNode == NULL) { - of.writeParameter("partitiveMonthRef", OUString("ref"), i); + of.writeParameter("partitiveMonthRef", "ref", i); of.writeParameter("partitiveMonthRefName", ref_name, i); nbOfPartitiveMonths[i] = 0; } else { @@ -1771,7 +1771,7 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const } } if (!ref_name.isEmpty() && erasNode == NULL) { - of.writeParameter("eraRef", OUString("ref"), i); + of.writeParameter("eraRef", "ref", i); of.writeParameter("eraRefName", ref_name, i); nbOfEras[i] = 0; } else { diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 6fcbb58f0e47..a3ee8c19ca31 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -1474,7 +1474,7 @@ oslGenericFunction SAL_CALL LocaleDataImpl::getFunctionSymbol( const Locale& rLo if (!pSymbol) { // load default function with name <func>_en_US - pSymbol = rLookupTable.getFunctionSymbolByName(OUString("en_US"), pFunction, &pCachedItem); + pSymbol = rLookupTable.getFunctionSymbolByName("en_US", pFunction, &pCachedItem); } if (!pSymbol) diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index 04a640d6cd6d..ce163bf25962 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -196,11 +196,11 @@ TransliterationImpl::loadModule( TransliterationModules modType, const Locale& r // additional transliterations from TranslationModuleExtra (we cannot extend TransliterationModule) if (modType & TransliterationModulesExtra::IGNORE_DIACRITICS_CTL) { - if (loadModuleByName(OUString("ignoreDiacritics_CTL"), bodyCascade[numCascade], rLocale)) + if (loadModuleByName("ignoreDiacritics_CTL", bodyCascade[numCascade], rLocale)) numCascade++; } if (modType & TransliterationModulesExtra::IGNORE_KASHIDA_CTL) - if (loadModuleByName(OUString("ignoreKashida_CTL"), bodyCascade[numCascade], rLocale)) + if (loadModuleByName("ignoreKashida_CTL", bodyCascade[numCascade], rLocale)) numCascade++; } else if (modType&TransliterationModules_NON_IGNORE_MASK) { |