diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 15:05:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 15:07:41 +0200 |
commit | 743f22045c4ec08c46c259fc0ba240194a391457 (patch) | |
tree | faed42bb31c4ee767619eb5c3ebd4dec0a41fa03 /unotools | |
parent | 0c6ebe5d225d6a655f078977455cec6d0a3afa6e (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 'unotools')
-rw-r--r-- | unotools/source/config/moduleoptions.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index aa2f076e8572..6bba8bd79db2 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -1259,25 +1259,25 @@ namespace -----------------------------------------------*/ SvtModuleOptions::EFactory SvtModuleOptions::ClassifyFactoryByShortName(const ::rtl::OUString& sName) { - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("swriter"))) + if ( sName == "swriter" ) return E_WRITER; if (sName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("swriter/Web"))) // sometimes they are registerd for swriter/web :-( return E_WRITERWEB; if (sName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("swriter/GlobalDocument"))) // sometimes they are registerd for swriter/globaldocument :-( return E_WRITERGLOBAL; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("scalc"))) + if ( sName == "scalc" ) return E_CALC; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("sdraw"))) + if ( sName == "sdraw" ) return E_DRAW; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("simpress"))) + if ( sName == "simpress" ) return E_IMPRESS; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("schart"))) + if ( sName == "schart" ) return E_CHART; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("smath"))) + if ( sName == "smath" ) return E_MATH; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("sbasic"))) + if ( sName == "sbasic" ) return E_BASIC; - if (sName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("sdatabase"))) + if ( sName == "sdatabase" ) return E_DATABASE; return E_UNKNOWN_FACTORY; |