diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 11:11:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-17 11:11:14 +0000 |
commit | d3073bef2f2502469fe5bcc5a233d6170eea4ab6 (patch) | |
tree | 3d670ee680f5982a03ed9d54c116e2410e559f66 /ucb | |
parent | f5334930664b89fb3c68dd0b5f7d49d51dcce055 (diff) |
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filglob.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/file/filglob.cxx b/ucb/source/ucp/file/filglob.cxx index 716a49003e7c..1f073e81d157 100644 --- a/ucb/source/ucp/file/filglob.cxx +++ b/ucb/source/ucp/file/filglob.cxx @@ -224,7 +224,7 @@ namespace fileaccess { if( aParent[ aParent.getLength()-1] == sal_Unicode(':') && aParent.getLength() == 6 ) aParent += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")); - if( 0 == aParent.compareToAscii( "file://" ) ) + if( aParent.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("file://")) ) aParent = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("file:///")); return aParent; |