diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-19 15:58:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:31 +0200 |
commit | 3af99e4d59d89c343965a928681a30f36b1007d2 (patch) | |
tree | 2389765131bdb92817e98bc922ffecbf0184d69b /cppu | |
parent | fdo#71645 remove footnote numbers in cross-references (diff) | |
download | core-3af99e4d59d89c343965a928681a30f36b1007d2.tar.gz core-3af99e4d59d89c343965a928681a30f36b1007d2.zip |
convert equalsAsciiL calls to startsWith calls
Convert code like:
aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) )
to
aStr.startsWith( "ActiveConnection" )
which compiles down to the same machine code.
Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/lbmap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx index 9b4204c9da16..9c6061565061 100644 --- a/cppu/source/uno/lbmap.cxx +++ b/cppu/source/uno/lbmap.cxx @@ -386,7 +386,7 @@ static Mapping loadExternalMapping( OUString aName; uno_ext_getMappingFunc fpGetMapFunc = 0; - if (EnvDcp::getTypeName(rFrom.getTypeName()).equalsAsciiL( RTL_CONSTASCII_STRINGPARAM(UNO_LB_UNO) )) + if (EnvDcp::getTypeName(rFrom.getTypeName()).startsWith( UNO_LB_UNO )) { aName = getBridgeName( rTo, rFrom, rAddPurpose ); fpGetMapFunc = selectMapFunc( aName ); |