summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-15 21:13:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-15 21:13:41 +0000
commitb1b10adec4c2730640e09aee8afed7ef393e338f (patch)
tree229832294557b8d7c7bbf8e6913c516a9a1264b2 /desktop
parente25d8eb4ae77230a4f98bd811d6be647b69ace6c (diff)
microopts equalsAsciiL faster than compareToAscii(const sal_Char*)
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/desktopcontext.cxx2
1 files changed, 1 insertions, 1 deletions
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()) );
}