diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-01-27 16:26:13 +0100 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-01-27 16:26:13 +0100 |
commit | 393c8482b60447746be305fc1e0da9eb47e0e43b (patch) | |
tree | afa0548862aee47e8add01e056716b3db4a02167 | |
parent | 8ea5a0efee790c4dd689b8b9e4cfc8e19f583a5f (diff) | |
parent | a3a11b622b45398761d00c813359bc73d6a7fbcb (diff) |
CWS-TOOLING: integrate CWS cmcfixes69
-rw-r--r-- | remotebridges/source/bridge/bridge_connection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remotebridges/source/bridge/bridge_connection.cxx b/remotebridges/source/bridge/bridge_connection.cxx index ebb49dba1874..8da07ab246b7 100644 --- a/remotebridges/source/bridge/bridge_connection.cxx +++ b/remotebridges/source/bridge/bridge_connection.cxx @@ -77,8 +77,8 @@ namespace remotebridges_bridge try { // TODO possible optimization : give - ::rtl::ByteSequence seq( nSize , ::rtl::BYTESEQ_NODEFAULT ); - sal_Int32 nRead = m->m_r->read( *(Sequence<sal_Int8>*)&seq , nSize ); + Sequence<sal_Int8> seq = toUnoSequence( ::rtl::ByteSequence(nSize, ::rtl::BYTESEQ_NODEFAULT) ); + sal_Int32 nRead = m->m_r->read( seq , nSize ); memcpy( pDest , seq.getConstArray() , nRead ); return nRead; } |