diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-19 17:46:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-19 17:46:51 +0100 |
commit | dfcc20fd8ed59c44c0394e5608cd261345bb5e03 (patch) | |
tree | 1e60e3f4fb4bee7260d3bc975cb1b59492b5c860 | |
parent | dc53c77ad54a156267ecd2b98b7940d40ab20065 (diff) |
More "compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)" fixes
Change-Id: Ia93b281b07559fb6f0d67d53dd91dfacf2be0d0b
-rw-r--r-- | basic/source/uno/namecont.cxx | 2 | ||||
-rw-r--r-- | 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. |