diff options
Diffstat (limited to 'ucb/source/ucp/webdav/webdavdatasupplier.cxx')
-rw-r--r-- | ucb/source/ucp/webdav/webdavdatasupplier.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx index a50bb7e312bf..6834734f0e5a 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx @@ -391,8 +391,7 @@ sal_Bool DataSupplier::getData() m_pImpl->m_xContent->getResourceAccess().getURL() ); OUString aPath = aURI.GetPath(); - if ( aPath.getStr()[ aPath.getLength() - 1 ] - == sal_Unicode( '/' ) ) + if ( aPath.endsWith("/") ) aPath = aPath.copy( 0, aPath.getLength() - 1 ); aPath = SerfUri::unescape( aPath ); @@ -410,9 +409,7 @@ sal_Bool DataSupplier::getData() { SerfUri aCurrURI( rRes.uri ); OUString aCurrPath = aCurrURI.GetPath(); - if ( aCurrPath.getStr()[ - aCurrPath.getLength() - 1 ] - == sal_Unicode( '/' ) ) + if ( aCurrPath.endsWith("/") ) aCurrPath = aCurrPath.copy( 0, |