diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/bc.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/SerfSession.cxx | 4 |
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; |