summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/shell.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-15 21:13:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-15 21:13:41 +0000
commitb1b10adec4c2730640e09aee8afed7ef393e338f (patch)
tree229832294557b8d7c7bbf8e6913c516a9a1264b2 /ucb/source/ucp/file/shell.cxx
parente25d8eb4ae77230a4f98bd811d6be647b69ace6c (diff)
microopts equalsAsciiL faster than compareToAscii(const sal_Char*)
Diffstat (limited to 'ucb/source/ucp/file/shell.cxx')
-rw-r--r--ucb/source/ucp/file/shell.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx
index d4c09b0444b2..6e6f9931ef8e 100644
--- a/ucb/source/ucp/file/shell.cxx
+++ b/ucb/source/ucp/file/shell.cxx
@@ -1977,9 +1977,9 @@ void SAL_CALL shell::insertDefaultProperties( const rtl::OUString& aUnqPath )
sal_Bool SAL_CALL shell::getUnqFromUrl( const rtl::OUString& Url,rtl::OUString& Unq )
{
- if( 0 == Url.compareToAscii( "file:///" ) ||
- 0 == Url.compareToAscii( "file://localhost/" ) ||
- 0 == Url.compareToAscii( "file://127.0.0.1/" ) )
+ if (Url.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("file:///")) ||
+ Url.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("file://localhost/")) ||
+ Url.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("file://127.0.0.1/")))
{
Unq = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///"));
return false;