diff options
author | Caolán McNamara <cmc@openoffice.org> | 2010-01-08 12:41:03 +0000 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2010-01-08 12:41:03 +0000 |
commit | a3a11b622b45398761d00c813359bc73d6a7fbcb (patch) | |
tree | 285b85c32a295d5c3cd6e7da0ca3e7d175a3faae | |
parent | cmcfixes69: merge with DEV300 m69 (diff) | |
download | core-a3a11b622b45398761d00c813359bc73d6a7fbcb.tar.gz core-a3a11b622b45398761d00c813359bc73d6a7fbcb.zip |
cmcfixes69: #i108151#: remotebridges: fix strict aliasing
-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; } |