summaryrefslogtreecommitdiff
path: root/i18npool/source/numberformatcode
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:54:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:57:53 +0200
commit24556a49123f4c2f3c221488fc7015b49e459a7b (patch)
tree76ed8a6bd6cea0987178ed9ecae1f302fad28196 /i18npool/source/numberformatcode
parentab153c4142500a84c95b3dc90e0006a11a03fc0b (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): i18npool
Change-Id: Icc5871d548fd7795936e58ff73b9d6fa7eeb6414 Reviewed-on: https://gerrit.libreoffice.org/76670 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/source/numberformatcode')
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx
index ac8454caf9d8..680d3ccfef1d 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -172,11 +172,11 @@ NumberFormatCodeMapper::mapElementTypeShortToString(sal_Int16 formatType)
switch ( formatType )
{
case css::i18n::KNumberFormatType::SHORT :
- return OUString( "short" );
+ return "short";
case css::i18n::KNumberFormatType::MEDIUM :
- return OUString( "medium" );
+ return "medium";
case css::i18n::KNumberFormatType::LONG :
- return OUString( "long" );
+ return "long";
}
return OUString();
}
@@ -200,21 +200,21 @@ NumberFormatCodeMapper::mapElementUsageShortToString(sal_Int16 formatUsage)
switch ( formatUsage )
{
case css::i18n::KNumberFormatUsage::DATE :
- return OUString( "DATE" );
+ return "DATE";
case css::i18n::KNumberFormatUsage::TIME :
- return OUString( "TIME" );
+ return "TIME";
case css::i18n::KNumberFormatUsage::DATE_TIME :
- return OUString( "DATE_TIME" );
+ return "DATE_TIME";
case css::i18n::KNumberFormatUsage::FIXED_NUMBER :
- return OUString( "FIXED_NUMBER" );
+ return "FIXED_NUMBER";
case css::i18n::KNumberFormatUsage::FRACTION_NUMBER :
- return OUString( "FRACTION_NUMBER" );
+ return "FRACTION_NUMBER";
case css::i18n::KNumberFormatUsage::PERCENT_NUMBER :
- return OUString( "PERCENT_NUMBER" );
+ return "PERCENT_NUMBER";
case css::i18n::KNumberFormatUsage::CURRENCY :
- return OUString( "CURRENCY" );
+ return "CURRENCY";
case css::i18n::KNumberFormatUsage::SCIENTIFIC_NUMBER :
- return OUString( "SCIENTIFIC_NUMBER" );
+ return "SCIENTIFIC_NUMBER";
}
return OUString();
}
@@ -247,7 +247,7 @@ NumberFormatCodeMapper::mapElementUsageStringToShort(const OUString& formatUsage
OUString SAL_CALL
NumberFormatCodeMapper::getImplementationName()
{
- return OUString("com.sun.star.i18n.NumberFormatCodeMapper");
+ return "com.sun.star.i18n.NumberFormatCodeMapper";
}
sal_Bool SAL_CALL NumberFormatCodeMapper::supportsService(const OUString& rServiceName)