diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index d0c7d14d7c9c..1f1031ee75fc 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -2842,7 +2842,7 @@ void SAL_CALL SfxLibraryContainer::exportLibrary( const OUString& Name, const OU OUString SfxLibraryContainer::expand_url( const OUString& url ) throw(::com::sun::star::uno::RuntimeException) { - if (0 == url.compareTo( EXPAND_PROTOCOL ":" )) + if (url.startsWith( EXPAND_PROTOCOL ":" )) { if( !mxMacroExpander.is() ) { diff --git a/ucbhelper/source/provider/registerucb.cxx b/ucbhelper/source/provider/registerucb.cxx index bc7990d4a6d1..33dd0c21f8ee 100644 --- a/ucbhelper/source/provider/registerucb.cxx +++ b/ucbhelper/source/provider/registerucb.cxx @@ -52,7 +52,7 @@ registerAtUcb( OSL_ENSURE(rServiceFactory.is(), "ucb::registerAtUcb(): No service factory"); - bool bNoProxy = rArguments.compareTo("{noproxy}") == 0; + bool bNoProxy = rArguments.startsWith("{noproxy}"); rtl::OUString aProviderArguments(bNoProxy ? rArguments.