diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 11:11:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 11:11:19 +0000 |
commit | 4a45c1b515859e997df02da0ff3d6d957c9048e5 (patch) | |
tree | a3a8c207fdfd64c3faa5db0717dcb6c55def1e1c /unotools/source/ucbhelper/ucblockbytes.cxx | |
parent | 255c380ead386f0eef6454021b2fa203cb182e89 (diff) |
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'unotools/source/ucbhelper/ucblockbytes.cxx')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index d41f7ee269fc..63a62e9fa2e6 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -956,10 +956,10 @@ static sal_Bool UCBOpenContentSync( aScheme = xContId->getContentProviderScheme(); // now determine wether we use a timeout or not; - if( ! aScheme.equalsIgnoreAsciiCaseAscii("http") && - ! aScheme.equalsIgnoreAsciiCaseAscii("https") && - ! aScheme.equalsIgnoreAsciiCaseAscii("vnd.sun.star.webdav") && - ! aScheme.equalsIgnoreAsciiCaseAscii("ftp")) + if( ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("http")) && + ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("https")) && + ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("vnd.sun.star.webdav")) && + ! aScheme.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("ftp"))) return _UCBOpenContentSync( xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler); |