From 62d270116bf34778bf581f21b27fa9cdbff7de0e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 3 Jun 2016 14:45:59 +0200 Subject: tools: rename SvStream::Read/Write to ReadBytes/WriteBytes Change-Id: Ib788a30d413436aa03f813aa2fddcbc4d6cd2f9a Reviewed-on: https://gerrit.libreoffice.org/25972 Tested-by: Jenkins Reviewed-by: Michael Stahl --- svl/source/filerec/filerec.cxx | 2 +- svl/source/items/lckbitem.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svl') diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx index b4febf724453..fcf83f3f1380 100644 --- a/svl/source/filerec/filerec.cxx +++ b/svl/source/filerec/filerec.cxx @@ -504,7 +504,7 @@ bool SfxMultiRecordReader::ReadHeader_Impl() _pContentOfs = new sal_uInt32[_nContentCount]; memset(_pContentOfs, 0, _nContentCount*sizeof(sal_uInt32)); #if defined(OSL_LITENDIAN) - _pStream->Read( _pContentOfs, sizeof(sal_uInt32)*_nContentCount ); + _pStream->ReadBytes( _pContentOfs, sizeof(sal_uInt32)*_nContentCount ); #else // (loop without braces) for ( sal_uInt16 n = 0; n < _nContentCount; ++n ) 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 ); -- cgit