summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 14:28:18 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 14:30:05 +0200
commit8a01ee624318ac08800af89d988971114637a04e (patch)
treee4acf35e42ab0c1d0b593bd8970fa2c435f90c95 /i18npool
parent6cf547f02c79278430ee75483a3128076cfc609e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/isolang/isolang.cxx2
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx22
2 files changed, 12 insertions, 12 deletions
diff --git a/i18npool/source/isolang/isolang.cxx b/i18npool/source/isolang/isolang.cxx
index f27cd887b3ad..9586b7bc655b 100644
--- a/i18npool/source/isolang/isolang.cxx
+++ b/i18npool/source/isolang/isolang.cxx
@@ -914,7 +914,7 @@ LanguageType MsLangId::convertIsoNamesToLanguage( const rtl::OUString& rLang,
while ( pEntry->mnLang != LANGUAGE_DONTKNOW );
// some eng countries should be mapped to a specific english language
- if ( aLowerLang.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "en" ) ) )
+ if ( aLowerLang == "en" )
{
const IsoLangEngEntry* pEngEntry = aImplIsoLangEngEntries;
do
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx
index ddb1052759ab..b8972e36de5c 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -201,11 +201,11 @@ NumberFormatCodeMapper::mapElementTypeShortToString(sal_Int16 formatType)
sal_Int16
NumberFormatCodeMapper::mapElementTypeStringToShort(const ::rtl::OUString& formatType)
{
- if(formatType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "short" ) ))
+ if ( formatType == "short" )
return com::sun::star::i18n::KNumberFormatType::SHORT;
- if(formatType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "medium" ) ))
+ if ( formatType == "medium" )
return com::sun::star::i18n::KNumberFormatType::MEDIUM;
- if(formatType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "long" ) ))
+ if ( formatType == "long" )
return com::sun::star::i18n::KNumberFormatType::LONG;
return com::sun::star::i18n::KNumberFormatType::SHORT;
@@ -240,21 +240,21 @@ NumberFormatCodeMapper::mapElementUsageShortToString(sal_Int16 formatUsage)
sal_Int16
NumberFormatCodeMapper::mapElementUsageStringToShort(const ::rtl::OUString& formatUsage)
{
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "DATE" ) ))
+ if ( formatUsage == "DATE" )
return com::sun::star::i18n::KNumberFormatUsage::DATE;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "TIME" ) ))
+ if ( formatUsage == "TIME" )
return com::sun::star::i18n::KNumberFormatUsage::TIME;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "DATE_TIME" ) ))
+ if ( formatUsage == "DATE_TIME" )
return com::sun::star::i18n::KNumberFormatUsage::DATE_TIME;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "FIXED_NUMBER" ) ))
+ if ( formatUsage == "FIXED_NUMBER" )
return com::sun::star::i18n::KNumberFormatUsage::FIXED_NUMBER;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "FRACTION_NUMBER" ) ))
+ if ( formatUsage == "FRACTION_NUMBER" )
return com::sun::star::i18n::KNumberFormatUsage::FRACTION_NUMBER;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "PERCENT_NUMBER" ) ))
+ if ( formatUsage == "PERCENT_NUMBER" )
return com::sun::star::i18n::KNumberFormatUsage::PERCENT_NUMBER;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "CURRENCY" ) ))
+ if ( formatUsage == "CURRENCY" )
return com::sun::star::i18n::KNumberFormatUsage::CURRENCY;
- if(formatUsage.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "SCIENTIFIC_NUMBER" ) ))
+ if ( formatUsage == "SCIENTIFIC_NUMBER" )
return com::sun::star::i18n::KNumberFormatUsage::SCIENTIFIC_NUMBER;
return 0;