summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/impldde.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-04 22:34:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-06 22:08:37 +0000
commit88072f1292facfcb586e4f8b8c9eb61f9d80e02c (patch)
treed9bd63c5d5111427ae767cc3722d11a5af634d10 /sfx2/source/appl/impldde.cxx
parent778ef20d74ce499e4e0c4b0e3e4506b44938b975 (diff)
make sfx2 ByteString free
Diffstat (limited to 'sfx2/source/appl/impldde.cxx')
-rw-r--r--sfx2/source/appl/impldde.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/appl/impldde.cxx b/sfx2/source/appl/impldde.cxx
index 2d423978619c..d5c2ddf0b227 100644
--- a/sfx2/source/appl/impldde.cxx
+++ b/sfx2/source/appl/impldde.cxx
@@ -42,6 +42,7 @@
#include <vcl/button.hxx>
#include <vcl/msgbox.hxx>
#include <sot/exchange.hxx>
+#include <rtl/strbuf.hxx>
#include <rtl/ustring.hxx>
#include "dde.hrc"
@@ -261,11 +262,11 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
// Server not up, try once more to start it.
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(RTL_CONSTASCII_STRINGPARAM(".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
{