diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-29 01:19:24 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-29 02:03:07 +0100 |
commit | 1258b576aef2ff3cdd4f44e1c03edb8c862a79f6 (patch) | |
tree | 80bbe4b11f5f7149ee64d50ecd55eb15e79839df /sot/source/sdstor/storage.cxx | |
parent | 19bbfc0b39d79a90539fd3094d9b6d7d81619a45 (diff) |
tools: support 64-bit file positions in SvStream
Bump stream positions to 64 bits on:
SvLockBytes::SetSize()
SvStream::SeekPos()
SvStream::SetSize()
SvStream::SetStreamSize()
SvStream::Seek()
SvStream::SeekRel()
SvStream::Tell()
SvStream::remainingSize()
SvStream::nActPos
SvStream::nBufFilePos
Change-Id: I0521fd60d31d1a33e5634cbf51dd42edc46ad919
TODO: adapt callers of Seek()/SeekRel()/Tell()/remainingSize()
Diffstat (limited to 'sot/source/sdstor/storage.cxx')
-rw-r--r-- | sot/source/sdstor/storage.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 5f18003b104a..217df328ee83 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -160,7 +160,7 @@ sal_uLong SotStorageStream::PutData( const void* pData, sal_uLong nSize ) return nRet; } -sal_uLong SotStorageStream::SeekPos( sal_uLong nPos ) +sal_uInt64 SotStorageStream::SeekPos(sal_uInt64 nPos) { sal_uLong nRet = 0; @@ -186,9 +186,9 @@ void SotStorageStream::FlushData() SvStream::FlushData(); } -void SotStorageStream::SetSize( sal_uLong nNewSize ) +void SotStorageStream::SetSize(sal_uInt64 const nNewSize) { - sal_uLong nPos = Tell(); + sal_uInt64 const nPos = Tell(); if( pOwnStm ) { pOwnStm->SetSize( nNewSize ); @@ -211,7 +211,7 @@ sal_uInt32 SotStorageStream::GetSize() const return nSize; } -sal_Size SotStorageStream::remainingSize() +sal_uInt64 SotStorageStream::remainingSize() { if (pOwnStm) return pOwnStm->GetSize() - Tell(); |