summaryrefslogtreecommitdiff
path: root/i18npool/source/localedata
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:36:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:36:13 +0100
commite875ef0364c8e5c076648f64b8813512deebdc8c (patch)
treeaa2f81c7a2630b2b9af3f7b430bf7ec882c1f78f /i18npool/source/localedata
parent69ef5d40c27f033cc60ef9fd563edbb0e81fbeaf (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I2c65eac8aa0b24be7f0c8a083b21904c842ca1ee
Diffstat (limited to 'i18npool/source/localedata')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx10
-rw-r--r--i18npool/source/localedata/localedata.cxx2
2 files changed, 6 insertions, 6 deletions
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)