summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-09 22:47:20 +0100
committerC├ędric Bosdonnat <cedric.bosdonnat@free.fr>2013-03-11 11:07:09 +0100
commit937b63af3322f7f8b5e869b2c7431a2deaec3113 (patch)
treea832f6672188551a5be9538a02fb80d6e3fc8497 /ucb
parent5c32ac5104e9cade52c8a373033644282de9ceff (diff)
use startsWith() instead of compareToAscii()
brain damage... Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/bc.cxx2
-rw-r--r--ucb/source/ucp/webdav/SerfSession.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index a08e033e0314..2c551af31595 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -1085,7 +1085,7 @@ BaseContent::transfer( sal_Int32 nMyCommandIdentifier,
if( m_nState & Deleted )
return;
- if( aTransferInfo.SourceURL.compareToAscii( "file:",5 ) != 0 )
+ if( !aTransferInfo.SourceURL.startsWith( "file:" ) )
{
m_pMyShell->installError( nMyCommandIdentifier,
TASKHANDLING_TRANSFER_INVALIDSCHEME );
diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx
index 57696dad839c..0a98c4edf2c1 100644
--- a/ucb/source/ucp/webdav/SerfSession.cxx
+++ b/ucb/source/ucp/webdav/SerfSession.cxx
@@ -418,12 +418,12 @@ apr_status_t SerfSession::verifySerfCertificateChain (
while (nIndex >= 0)
{
const ::rtl::OUString sToken (sServerCertificateSubject.getToken(0, ',', nIndex));
- if (sToken.compareToAscii("CN=", 3) == 0)
+ if (sToken.startsWith("CN="))
{
sServerCertificateSubject = sToken.copy(3);
break;
}
- else if (sToken.compareToAscii(" CN=", 4) == 0)
+ else if (sToken.startsWith(" CN="))
{
sServerCertificateSubject = sToken.copy(4);
break;