From 2d9ce9191da681e4fd9f1d08933ca5117c56601b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann <sbergman@redhat.com> Date: Wed, 20 Mar 2013 13:02:46 +0100 Subject: Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength) ...which is a confusing overload with unexpectedly different semantics from the one-parameter form. In preparation of marking it as deprecated. Change-Id: I4f176995546ae583fc570d770647ffc315eecc75 --- framework/source/fwe/classes/addonsoptions.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/source/fwe') diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx index 47c4efbc2077..6b9aefa75ef1 100644 --- a/framework/source/fwe/classes/addonsoptions.cxx +++ b/framework/source/fwe/classes/addonsoptions.cxx @@ -1277,7 +1277,7 @@ sal_Bool AddonsOptions_Impl::HasAssociatedImages( const OUString& aURL ) //***************************************************************************************************************** void AddonsOptions_Impl::SubstituteVariables( OUString& aURL ) { - if (( aURL.compareToAscii( RTL_CONSTASCII_STRINGPARAM( EXPAND_PROTOCOL )) == 0 ) ) + if ( aURL.startsWith( EXPAND_PROTOCOL ) ) { // cut protocol OUString macro( aURL.copy( sizeof ( EXPAND_PROTOCOL ) -1 ) ); -- cgit