diff options
author | sb <sb@openoffice.org> | 2010-02-08 09:18:14 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-02-08 09:18:14 +0100 |
commit | 10ddd5251072599a6d1b598dc861d6dc31babf13 (patch) | |
tree | c4e156dc578d285501399eee97303d759035f497 /remotebridges | |
parent | a55d2f6a21a5068a43241f73dd0cadbe28ae6774 (diff) | |
parent | cb6dc8c0cbadd25385d581c0dd3583afc10fd26a (diff) |
sb118: merged in DEV300_m71
Diffstat (limited to 'remotebridges')
-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; } |