diff options
author | Szabolcs Dezsi <dezsiszabi@hotmail.com> | 2012-04-06 15:37:46 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-04-06 20:03:42 +0200 |
commit | 27cea710fd1e4e8887bcb95e1d25a53d9eae9f22 (patch) | |
tree | 008d7618c1ac152dca698a9ad2d791db0afecd58 /sal | |
parent | 99268dbe1fc25bc2d04eefa1a9f7e2cf7b398065 (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 'sal')
-rw-r--r-- | sal/rtl/source/bootstrap.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sal/rtl/source/bootstrap.cxx b/sal/rtl/source/bootstrap.cxx index a62f3f3cc41e..0869366e5660 100644 --- a/sal/rtl/source/bootstrap.cxx +++ b/sal/rtl/source/bootstrap.cxx @@ -480,24 +480,24 @@ bool Bootstrap_Impl::getValue( if (override && getDirectValue(key, value, mode, requestStack)) { return true; } - if (key.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("_OS"))) { + if ( key == "_OS" ) { rtl_uString_assign( value, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(THIS_OS)).pData); return true; } - if (key.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("_ARCH"))) { + if ( key == "_ARCH" ) { rtl_uString_assign( value, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(THIS_ARCH)).pData); return true; } - if (key.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("_CPPU_ENV"))) { + if ( key == "_CPPU_ENV" ) { rtl_uString_assign( value, (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(MY_STRING(CPPU_ENV))). pData)); return true; } - if (key.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("ORIGIN"))) { + if ( key == "ORIGIN" ) { rtl_uString_assign( value, _iniName.copy( @@ -507,21 +507,21 @@ bool Bootstrap_Impl::getValue( if (getAmbienceValue(key, value, mode, requestStack)) { return true; } - if (key.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("SYSUSERCONFIG"))) { + if ( key == "SYSUSERCONFIG" ) { rtl::OUString v; bool b = osl::Security().getConfigDir(v); EnsureNoFinalSlash(v); rtl_uString_assign(value, v.pData); return b; } - if (key.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("SYSUSERHOME"))) { + if ( key == "SYSUSERHOME" ) { rtl::OUString v; bool b = osl::Security().getHomeDir(v); EnsureNoFinalSlash(v); rtl_uString_assign(value, v.pData); return b; } - if (key.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("SYSBINDIR"))) { + if ( key == "SYSBINDIR" ) { getExecutableDirectory_Impl(value); return true; } |