[Libreoffice-commits] .: binfilter/bf_so3
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Nov 30 05:06:29 PST 2011
binfilter/bf_so3/source/solink/impldde.cxx | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
New commits:
commit e52d84416c9958ddcdc0bedd3e5250fa2383e826
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 30 13:05:28 2011 +0000
convert over hidden windows-only ByteStrings
diff --git a/binfilter/bf_so3/source/solink/impldde.cxx b/binfilter/bf_so3/source/solink/impldde.cxx
index b05fbff..13c5984 100644
--- a/binfilter/bf_so3/source/solink/impldde.cxx
+++ b/binfilter/bf_so3/source/solink/impldde.cxx
@@ -36,6 +36,7 @@
#include <vcl/svapp.hxx>
#include <vcl/msgbox.hxx>
#include <sot/exchange.hxx>
+#include <rtl/strbuf.hxx>
#include <rtl/ustring.hxx>
#include <bf_so3/iface.hxx>
@@ -196,11 +197,13 @@ BOOL SvDDEObject::Connect( SvBaseLink * pSvLink )
// Server nicht da, starten und nochmal versuchen
if( !bInWinExec )
{
- ByteString aCmdLine( sServer, RTL_TEXTENCODING_ASCII_US );
- aCmdLine.Append( ".exe " );
- aCmdLine.Append( ByteString( sTopic, RTL_TEXTENCODING_ASCII_US ) );
+ rtl::OStringBuffer aCmdLine(rtl::OUStringToOString(sServer,
+ RTL_TEXTENCODING_ASCII_US));
+ aCmdLine.append(".exe ");
+ aCmdLine.append(rtl::OUStringToOString(sTopic,
+ RTL_TEXTENCODING_ASCII_US));
- if( WinExec( aCmdLine.GetBuffer(), SW_SHOWMINIMIZED ) < 32 )
+ if( WinExec( aCmdLine.getStr(), SW_SHOWMINIMIZED ) < 32 )
nError = DDELINK_ERROR_APP;
else
{
More information about the Libreoffice-commits
mailing list