Kaydet (Commit) 120d3fe1 authored tarafından Michael Stahl's avatar Michael Stahl

appdde.cxx: try to fix MSVC build

Change-Id: I14baa8bc0a462492ada6e4aeb8d8f90a0de2a51d
üst 1e95602e
...@@ -233,7 +233,7 @@ class SfxDdeDocTopics_Impl : public std::vector<SfxDdeDocTopic_Impl*> {}; ...@@ -233,7 +233,7 @@ class SfxDdeDocTopics_Impl : public std::vector<SfxDdeDocTopic_Impl*> {};
//======================================================================== //========================================================================
sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent, sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent,
const String &rCmd, const String &rEvent, const OUString& rCmd, const OUString& rEvent,
ApplicationEvent::Type eType ) ApplicationEvent::Type eType )
/* [Description] /* [Description]
...@@ -250,12 +250,12 @@ sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent, ...@@ -250,12 +250,12 @@ sal_Bool SfxAppEvent_Impl( ApplicationEvent &rAppEvent,
*/ */
{ {
String aEvent( rEvent ); OUString sEvent(rEvent);
aEvent += '('; sEvent += "(";
if ( rCmd.CompareIgnoreCaseToAscii( aEvent, aEvent.Len() ) == COMPARE_EQUAL ) if (rCmd.startsWithIgnoreAsciiCase(sEvent))
{ {
::rtl::OUStringBuffer aData( rCmd ); ::rtl::OUStringBuffer aData( rCmd );
aData.remove( 0, aEvent.Len() ); aData.remove(0, sEvent.getLength());
if ( aData.getLength() > 2 ) if ( aData.getLength() > 2 )
{ {
// Transform into the ApplicationEvent Format // Transform into the ApplicationEvent Format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment