From dfcc20fd8ed59c44c0394e5608cd261345bb5e03 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 19 Mar 2013 17:46:35 +0100 Subject: [PATCH] More "compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)" fixes Change-Id: Ia93b281b07559fb6f0d67d53dd91dfacf2be0d0b --- basic/source/uno/namecont.cxx | 2 +- ucbhelper/source/provider/registerucb.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.