summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/storage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/storage.cxx')
-rw-r--r--sot/source/sdstor/storage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index b0ef715f8507..b332911cc7fa 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -201,9 +201,9 @@ void SotStorageStream::CopyTo( SotStorageStream * pDestStm )
std::unique_ptr<sal_uInt8[]> pMem(new sal_uInt8[ 8192 ]);
sal_uLong nRead;
- while( 0 != (nRead = Read( pMem.get(), 8192 )) )
+ while (0 != (nRead = ReadBytes(pMem.get(), 8192)))
{
- if( nRead != pDestStm->Write( pMem.get(), nRead ) )
+ if (nRead != pDestStm->WriteBytes(pMem.get(), nRead))
{
SetError( SVSTREAM_GENERALERROR );
break;