diff options
Diffstat (limited to 'tools/source/ref/pstm.cxx')
-rw-r--r-- | tools/source/ref/pstm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index 3c15968c0699..74e6bc858108 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -93,7 +93,7 @@ void SvPersistStream::ResetError() sal_uIntPtr SvPersistStream::GetData( void* pData, sal_uIntPtr nSize ) { DBG_ASSERT( pStm, "stream not set" ); - sal_uIntPtr nRet = pStm->Read( pData, nSize ); + sal_Size const nRet = pStm->ReadBytes( pData, nSize ); SetError( pStm->GetError() ); return nRet; } @@ -101,7 +101,7 @@ sal_uIntPtr SvPersistStream::GetData( void* pData, sal_uIntPtr nSize ) sal_uIntPtr SvPersistStream::PutData( const void* pData, sal_uIntPtr nSize ) { DBG_ASSERT( pStm, "stream not set" ); - sal_uIntPtr nRet = pStm->Write( pData, nSize ); + sal_Size const nRet = pStm->WriteBytes( pData, nSize ); SetError( pStm->GetError() ); return nRet; } |