diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-07-06 11:05:29 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-07-06 11:05:29 +0000 |
commit | 690499632bb612b628a5dc88bd685467c3cbbe92 (patch) | |
tree | 0fd0dae6aa575f9e2a1ba019ce177913dbdf151c /automation/source | |
parent | f228514d629074a33d95a8f269df0819665a2b65 (diff) |
INTEGRATION: CWS docking1 (1.2.78); FILE MERGED
2004/06/15 15:01:37 gh 1.2.78.1: #i29531#add support for string ids to acces UI elements. Needed for new ToolBoxes
Diffstat (limited to 'automation/source')
-rw-r--r-- | automation/source/server/scmdstrm.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/automation/source/server/scmdstrm.cxx b/automation/source/server/scmdstrm.cxx index a2e901f04691..a3d97f162897 100644 --- a/automation/source/server/scmdstrm.cxx +++ b/automation/source/server/scmdstrm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: scmdstrm.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: vg $ $Date: 2003-04-15 15:53:26 $ + * last change: $Author: obo $ $Date: 2004-07-06 12:05:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -93,11 +93,23 @@ SCmdStream::~SCmdStream() delete pCommStream; } +void SCmdStream::Read (String* &pString) +{ + if ( !pString ) + pString = new String(); + comm_UniChar* pStr; + USHORT nLenInChars; + CmdBaseStream::Read( pStr, nLenInChars ); + + *pString = String( pStr, nLenInChars ); + delete [] pStr; +} + void SCmdStream::Read (String &aString) { comm_UniChar* pStr; USHORT nLenInChars; - Read( pStr, nLenInChars ); + CmdBaseStream::Read( pStr, nLenInChars ); aString = String( pStr, nLenInChars ); delete [] pStr; |