diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 14:05:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 08:07:18 +0200 |
commit | 2241fd5302c1ec83c8cbaa2422a477628a569aab (patch) | |
tree | a1e29ab709aaa0cfda59382db1ef84d25a238908 /l10ntools | |
parent | 6266efb0fe8cd52ee908d5d36f1de322735fe8bc (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::equalsIgnoreAsciiL
Convert code like:
aStr.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("XGRAD_SEQ_BEGIN"))
to:
aStr.equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN")
which compiles down to the same code.
Change-Id: Ia69289d853d292b2f27b68863cb6f6ecdbf1a71e
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/lngmerge.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/uimerge.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/xrmmerge.cxx | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 5f40c106bc91..ef18481c4dbd 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -371,7 +371,7 @@ int Export::Execute( int nToken, const char * pToken ) break; } } - if( sToken.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("#define NO_LOCALIZE_EXPORT")) ){ + if( sToken.equalsIgnoreAsciiCase("#define NO_LOCALIZE_EXPORT") ){ bSkipFile = true; return 0; } diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx index fc8aa7b4187e..e221f1695398 100644 --- a/l10ntools/source/lngmerge.cxx +++ b/l10ntools/source/lngmerge.cxx @@ -276,7 +276,7 @@ sal_Bool LngParser::Merge( for(size_t n = 0; n < aLanguages.size(); ++n) { sCur = aLanguages[ n ]; - if( !sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US")) && Text[sCur].isEmpty() && pEntrys ) + if( !sCur.equalsIgnoreAsciiCase("en-US") && Text[sCur].isEmpty() && pEntrys ) { OString sNewText; diff --git a/l10ntools/source/uimerge.cxx b/l10ntools/source/uimerge.cxx index 91a0283f0b4e..59d956f55440 100644 --- a/l10ntools/source/uimerge.cxx +++ b/l10ntools/source/uimerge.cxx @@ -170,7 +170,7 @@ bool Merge( for(size_t n = 0; n < aLanguages.size(); ++n) { OString sCur = aLanguages[ n ]; - if (sCur.isEmpty() || sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US"))) + if (sCur.isEmpty() || sCur.equalsIgnoreAsciiCase("en-US")) continue; const OString aDestinationFile(aDestinationDir + sCur + ".ui"); if (!lcl_MergeLang(rMap, sCur, aDestinationFile)) diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx index 8265b4afcbb1..046d02adc1d6 100644 --- a/l10ntools/source/xrmmerge.cxx +++ b/l10ntools/source/xrmmerge.cxx @@ -418,7 +418,7 @@ void XRMResMerge::WorkOnDesc( for( unsigned int n = 0; n < aLanguages.size(); n++ ){ sCur = aLanguages[ n ]; OString sContent; - if ( !sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US")) && + if ( !sCur.equalsIgnoreAsciiCase("en-US") && ( pEntrys->GetText( sContent, STRING_TYP_TEXT, sCur, sal_True )) && !sContent.isEmpty()) @@ -507,7 +507,7 @@ void XRMResMerge::EndOfText( for( unsigned int n = 0; n < aLanguages.size(); n++ ){ sCur = aLanguages[ n ]; OString sContent; - if (!sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US")) && + if (!sCur.equalsIgnoreAsciiCase("en-US") && ( pEntrys->GetText( sContent, STRING_TYP_TEXT, sCur, sal_True )) && !sContent.isEmpty() && |