diff options
Diffstat (limited to 'svl/source/items/lckbitem.cxx')
-rw-r--r-- | svl/source/items/lckbitem.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/items/lckbitem.cxx b/svl/source/items/lckbitem.cxx index e4bf31789ab4..9126580162e5 100644 --- a/svl/source/items/lckbitem.cxx +++ b/svl/source/items/lckbitem.cxx @@ -84,8 +84,8 @@ SfxPoolItem* SfxLockBytesItem::Create( SvStream &rStream, sal_uInt16 ) const nToRead = MAX_BUF; else nToRead = nSize - nActRead; - nActRead += rStream.Read( cTmpBuf, nToRead ); - aNewStream.Write( cTmpBuf, nToRead ); + nActRead += rStream.ReadBytes( cTmpBuf, nToRead ); + aNewStream.WriteBytes( cTmpBuf, nToRead ); } while( nSize > nActRead ); return new SfxLockBytesItem( Which(), aNewStream ); @@ -113,7 +113,7 @@ bool SfxLockBytesItem::PutValue( const css::uno::Any& rVal, sal_uInt8 ) if ( aSeq.getLength() ) { SvMemoryStream* pStream = new SvMemoryStream(); - pStream->Write( aSeq.getConstArray(), aSeq.getLength() ); + pStream->WriteBytes( aSeq.getConstArray(), aSeq.getLength() ); pStream->Seek(0); _xVal = new SvLockBytes( pStream, true ); |