More "compareToAscii(RTL_CONSTASCII_STRINGPARAM(s)) != compareTo(s)" fixes

Change-Id: Ia93b281b07559fb6f0d67d53dd91dfacf2be0d0b
This commit is contained in:
Stephan Bergmann 2013-03-19 17:46:35 +01:00
parent dc53c77ad5
commit dfcc20fd8e
2 changed files with 2 additions and 2 deletions

View File

@ -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() )
{

View File

@ -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.