[Libreoffice-commits] core.git: sfx2/source
Michael Stahl
mstahl at redhat.com
Thu Feb 14 11:16:40 PST 2013
sfx2/source/appl/appdde.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 120d3fe123e9567f2a488575b5afd48dae1cab5d
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Feb 14 20:13:18 2013 +0100
appdde.cxx: try to fix MSVC build
Change-Id: I14baa8bc0a462492ada6e4aeb8d8f90a0de2a51d
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx
index 060ecf5..801a8a0 100644
--- a/sfx2/source/appl/appdde.cxx
+++ b/sfx2/source/appl/appdde.cxx
@@ -233,7 +233,7 @@ class SfxDdeDocTopics_Impl : public std::vector<SfxDdeDocTopic_Impl*> {};
//========================================================================
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
More information about the Libreoffice-commits
mailing list