From 65e4a776e8315fd61fd67ad00d28985b11f0b79e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Jul 2017 10:31:38 +0200 Subject: simplify some OUString::copy calls Change-Id: Ifa228ca02ea79a1309e1875414028aade7e5f12d Reviewed-on: https://gerrit.libreoffice.org/39801 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/webdav-neon/webdavprovider.cxx | 2 +- ucb/source/ucp/webdav/webdavprovider.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ucb/source') diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.cxx b/ucb/source/ucp/webdav-neon/webdavprovider.cxx index 756783ac1a0d..cfaa4b6ef579 100644 --- a/ucb/source/ucp/webdav-neon/webdavprovider.cxx +++ b/ucb/source/ucp/webdav-neon/webdavprovider.cxx @@ -142,7 +142,7 @@ ContentProvider::queryContent( if ( aURL.getLength() < ( aScheme.getLength() + 3 ) ) throw ucb::IllegalIdentifierException(); - if ( aURL.copy( aScheme.getLength(), 3 ) != "://" ) + if ( !aURL.match("://", aScheme.getLength()) ) throw ucb::IllegalIdentifierException(); uno::Reference< ucb::XContentIdentifier > xCanonicId; diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx index 607d64236c78..f25ed36a3c76 100644 --- a/ucb/source/ucp/webdav/webdavprovider.cxx +++ b/ucb/source/ucp/webdav/webdavprovider.cxx @@ -131,7 +131,7 @@ ContentProvider::queryContent( if ( aURL.getLength() < ( aScheme.getLength() + 3 ) ) throw ucb::IllegalIdentifierException(); - if ( aURL.copy( aScheme.getLength(), 3 ) != "://" ) + if ( !aURL.match( aScheme.getLength(), "://") ) throw ucb::IllegalIdentifierException(); uno::Reference< ucb::XContentIdentifier > xCanonicId; -- cgit