diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 10:33:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 10:33:06 +0000 |
commit | 1984fef61eea7b06c6a91f5d46a1a8815d286ec1 (patch) | |
tree | 5e9774d7cf65e0bee1caa557d20257575fb4d9d2 /sot | |
parent | 308d8d92b27cd2a56b1acc5226ea8bb0540a77a5 (diff) |
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index dfc0ab9ad12a..51d297dd4e31 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1979,7 +1979,7 @@ void UCBStorage_Impl::ReadContent() if ( m_bIsLinked ) { // unpacked storages have to deal with the meta-inf folder by themselves - if( aTitle.equalsAscii("META-INF") ) + if( aTitle.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("META-INF")) ) continue; } else @@ -2103,7 +2103,7 @@ sal_Int32 UCBStorage_Impl::GetObjectCount() for ( sal_Int32 nProps=0; nProps<rMyProps.getLength(); nProps++ ) { const PropertyValue& rAny = rMyProps[nProps]; - if ( rAny.Name.equalsAscii("FullPath") ) + if ( rAny.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("FullPath")) ) { rtl::OUString aTmp; if ( ( rAny.Value >>= aTmp ) && aTmp == rPath ) @@ -2111,7 +2111,7 @@ sal_Int32 UCBStorage_Impl::GetObjectCount() if ( aType.getLength() ) break; } - else if ( rAny.Name.equalsAscii("MediaType") ) + else if ( rAny.Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MediaType")) ) { if ( ( rAny.Value >>= aType ) && aType.getLength() && bFound ) break; |