From 120d3fe123e9567f2a488575b5afd48dae1cab5d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 14 Feb 2013 20:13:18 +0100 Subject: appdde.cxx: try to fix MSVC build Change-Id: I14baa8bc0a462492ada6e4aeb8d8f90a0de2a51d --- sfx2/source/appl/appdde.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index 060ecf5227b6..801a8a0fcf86 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -233,7 +233,7 @@ class SfxDdeDocTopics_Impl : public std::vector {}; //======================================================================== sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent, - const String &rCmd, const String &rEvent, + const OUString& rCmd, const OUString& rEvent, ApplicationEvent::Type eType ) /* [Description] @@ -250,12 +250,12 @@ sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent, */ { - String aEvent( rEvent ); - aEvent += '('; - if ( rCmd.CompareIgnoreCaseToAscii( aEvent, aEvent.Len() ) == COMPARE_EQUAL ) + OUString sEvent(rEvent); + sEvent += "("; + if (rCmd.startsWithIgnoreAsciiCase(sEvent)) { ::rtl::OUStringBuffer aData( rCmd ); - aData.remove( 0, aEvent.Len() ); + aData.remove(0, sEvent.getLength()); if ( aData.getLength() > 2 ) { // Transform into the ApplicationEvent Format -- cgit