diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 11:34:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-21 13:29:29 +0200 |
commit | 6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch) | |
tree | ff375d3a9e989c731a42a1255b8e1cede2bb6bbd /l10ntools | |
parent | 89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aStr == "rem")
which compiles down to the same code.
Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 405716719b44..5f40c106bc91 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -507,18 +507,18 @@ int Export::Execute( int nToken, const char * pToken ) OString sValue = sToken.getToken(0, '=', n); CleanValue( sValue ); sKey = sKey.toAsciiUpperCase(); - if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("IDENTIFIER"))) + if (sKey == "IDENTIFIER") { OString sId( sValue.replaceAll("\t", OString()). replaceAll(" ", OString())); pResData->SetId(sId, ID_LEVEL_IDENTIFIER); } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("HELPID"))) + else if (sKey == "HELPID") { pResData->sHelpId = sValue; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("STRINGLIST"))) + else if (sKey =="STRINGLIST") { pResData->bList = sal_True; nList = LIST_STRING; @@ -526,7 +526,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("FILTERLIST"))) + else if (sKey == "FILTERLIST") { pResData->bList = sal_True; nList = LIST_FILTER; @@ -534,7 +534,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UIENTRIES"))) + else if (sKey == "UIENTRIES") { pResData->bList = sal_True; nList = LIST_UIENTRIES; @@ -564,7 +564,7 @@ int Export::Execute( int nToken, const char * pToken ) OString sValue = sToken.getToken(1, '='); CleanValue( sValue ); sKey = sKey.toAsciiUpperCase(); - if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("STRINGLIST"))) + if (sKey == "STRINGLIST") { pResData->bList = sal_True; nList = LIST_STRING; @@ -572,7 +572,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("FILTERLIST"))) + else if (sKey == "FILTERLIST") { pResData->bList = sal_True; nList = LIST_FILTER; @@ -580,7 +580,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("PAIREDLIST"))) + else if (sKey == "PAIREDLIST") { pResData->bList = sal_True; nList = LIST_PAIRED; @@ -588,7 +588,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("ITEMLIST"))) + else if (sKey == "ITEMLIST") { pResData->bList = sal_True; nList = LIST_ITEM; @@ -596,7 +596,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UIENTRIES"))) + else if (sKey == "UIENTRIES") { pResData->bList = sal_True; nList = LIST_UIENTRIES; @@ -648,11 +648,11 @@ int Export::Execute( int nToken, const char * pToken ) if ( !sText.isEmpty() && !sLang.isEmpty() ) { sKey = sKey.toAsciiUpperCase(); - if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("TEXT")) || - sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("MESSAGE")) || - sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("CUSTOMUNITTEXT")) || - sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("SLOTNAME")) || - sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UINAME"))) + if (sKey == "TEXT" || + sKey == "MESSAGE" || + sKey == "CUSTOMUNITTEXT" || + sKey == "SLOTNAME" || + sKey == "UINAME") { SetChildWithText(); if ( sLangIndex.equalsIgnoreAsciiCase("en-US") ) |