diff options
Diffstat (limited to 'cppuhelper/source/bootstrap.cxx')
-rw-r--r-- | cppuhelper/source/bootstrap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx index 81d34202db26..6522f722ca62 100644 --- a/cppuhelper/source/bootstrap.cxx +++ b/cppuhelper/source/bootstrap.cxx @@ -111,7 +111,7 @@ Reference< XComponentContext > SAL_CALL bootstrap() throw BootstrapException( "cannot convert soffice installation path to URL!"); } - if (!path.isEmpty() && path[path.getLength() - 1] != '/') { + if (!path.isEmpty() && !path.endsWith("/")) { path += "/"; } |