summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgstrms.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgstrms.cxx')
-rw-r--r--sot/source/sdstor/stgstrms.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 4f749486c1cc..521c6cf5adde 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1149,9 +1149,9 @@ bool StgTmpStrm::Copy( StgTmpStrm& rSrc )
while( n )
{
const sal_uInt64 nn = std::min<sal_uInt64>(n, 4096);
- if( rSrc.Read( p.get(), nn ) != nn )
+ if (rSrc.ReadBytes( p.get(), nn ) != nn)
break;
- if( Write( p.get(), nn ) != nn )
+ if (WriteBytes( p.get(), nn ) != nn)
break;
n -= nn;
}
@@ -1207,8 +1207,8 @@ void StgTmpStrm::SetSize(sal_uInt64 n)
while( i )
{
const sal_uInt64 nb = std::min<sal_uInt64>(i, 4096);
- if( Read( p.get(), nb ) == nb
- && s->Write( p.get(), nb ) == nb )
+ if (ReadBytes(p.get(), nb) == nb
+ && s->WriteBytes(p.get(), nb) == nb)
i -= nb;
else
break;
@@ -1225,7 +1225,7 @@ void StgTmpStrm::SetSize(sal_uInt64 n)
while (i)
{
const sal_uInt64 nb = std::min<sal_uInt64>(i, 4096);
- if (s->Write(p.get(), nb) == nb)
+ if (s->WriteBytes(p.get(), nb) == nb)
i -= nb;
else
break; // error
@@ -1262,7 +1262,7 @@ sal_Size StgTmpStrm::GetData( void* pData, sal_Size n )
{
if( m_pStrm )
{
- n = m_pStrm->Read( pData, n );
+ n = m_pStrm->ReadBytes( pData, n );
SetError( m_pStrm->GetError() );
return n;
}
@@ -1282,7 +1282,7 @@ sal_Size StgTmpStrm::PutData( const void* pData, sal_Size n )
}
if( m_pStrm )
{
- nNew = m_pStrm->Write( pData, n );
+ nNew = m_pStrm->WriteBytes( pData, n );
SetError( m_pStrm->GetError() );
}
else