From 7e72b9de5545ac3baaa44e2d7f11c2872b1677a7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 Dec 2013 09:06:31 +0200 Subject: use OUString::endsWith where possible Change-Id: Ie2b68f79a7f9a54899f1d727f9a1fc7cfb14d90a --- desktop/source/deployment/registry/sfwk/dp_sfwk.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx index 9af1ef1c3094..80510373effe 100644 --- a/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx +++ b/desktop/source/deployment/registry/sfwk/dp_sfwk.cxx @@ -143,7 +143,7 @@ BackendImpl::PackageImpl::PackageImpl( initPackageHandler(); sal_Int32 segmEnd = url.getLength(); - if (!url.isEmpty() && url[ url.getLength() - 1 ] == '/') + if ( url.endsWith("/") ) --segmEnd; sal_Int32 segmStart = (url.lastIndexOf( '/', segmEnd ) + 1); if (segmStart < 0) -- cgit