From b1b10adec4c2730640e09aee8afed7ef393e338f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 15 Jan 2011 21:13:41 +0000 Subject: microopts equalsAsciiL faster than compareToAscii(const sal_Char*) --- desktop/source/app/desktopcontext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/source/app/desktopcontext.cxx b/desktop/source/app/desktopcontext.cxx index 8a9b14e351cd..bed77fae9f69 100644 --- a/desktop/source/app/desktopcontext.cxx +++ b/desktop/source/app/desktopcontext.cxx @@ -49,7 +49,7 @@ Any SAL_CALL DesktopContext::getValueByName( const OUString& Name) throw (Runtim { Any retVal; - if ( 0 == Name.compareToAscii( JAVA_INTERACTION_HANDLER_NAME )) + if (Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(JAVA_INTERACTION_HANDLER_NAME))) { retVal = makeAny( Reference< XInteractionHandler >( new svt::JavaInteractionHandler()) ); } -- cgit v1.2.3