diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-28 23:31:23 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-29 02:03:07 +0100 |
commit | 655a39d8c0d151618d7c3b3fe0dcff508c2b53c5 (patch) | |
tree | 7a2a806e52d6b43a96d093de68075a057855a2af /basic/source/runtime/iosys.cxx | |
parent | 2ec45841b97a994ef9dca854e142598a063877fd (diff) |
basic: for PutData()/GetData() actually 32bits should be enough
Change-Id: I3c605a1e5b46d262ff557dac280b15136467b906
Diffstat (limited to 'basic/source/runtime/iosys.cxx')
-rw-r--r-- | basic/source/runtime/iosys.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index e5f868f1c838..c4bd9132d401 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -313,8 +313,8 @@ class OslStream : public SvStream public: OslStream( const OUString& rName, short nStrmMode ); ~OslStream(); - virtual sal_uInt64 GetData( void* pData, sal_uInt64 nSize ) SAL_OVERRIDE; - virtual sal_uInt64 PutData( const void* pData, sal_uInt64 nSize ) SAL_OVERRIDE; + virtual sal_Size GetData( void* pData, sal_Size nSize ) SAL_OVERRIDE; + virtual sal_Size PutData( const void* pData, sal_Size nSize ) SAL_OVERRIDE; virtual sal_uInt64 SeekPos( sal_uInt64 nPos ) SAL_OVERRIDE; virtual void FlushData() SAL_OVERRIDE; virtual void SetSize( sal_uInt64 nSize) SAL_OVERRIDE; @@ -357,16 +357,16 @@ OslStream::~OslStream() maFile.close(); } -sal_uInt64 OslStream::GetData( void* pData, sal_uInt64 nSize ) +sal_Size OslStream::GetData(void* pData, sal_Size nSize) { - sal_uInt64 nBytesRead = nSize; + sal_Size nBytesRead = nSize; maFile.read( pData, nBytesRead, nBytesRead ); return nBytesRead; } -sal_uInt64 OslStream::PutData( const void* pData, sal_uInt64 nSize ) +sal_Size OslStream::PutData(const void* pData, sal_Size nSize) { - sal_uInt64 nBytesWritten; + sal_Size nBytesWritten; maFile.write( pData, nSize, nBytesWritten ); return nBytesWritten; } @@ -407,8 +407,8 @@ public: UCBStream( Reference< XInputStream > & xIS ); UCBStream( Reference< XStream > & xS ); ~UCBStream(); - virtual sal_uInt64 GetData( void* pData, sal_uInt64 nSize ) SAL_OVERRIDE; - virtual sal_uInt64 PutData( const void* pData, sal_uInt64 nSize ) SAL_OVERRIDE; + virtual sal_Size GetData( void* pData, sal_Size nSize ) SAL_OVERRIDE; + virtual sal_Size PutData( const void* pData, sal_Size nSize ) SAL_OVERRIDE; virtual sal_uInt64 SeekPos( sal_uInt64 nPos ) SAL_OVERRIDE; virtual void FlushData() SAL_OVERRIDE; virtual void SetSize( sal_uInt64 nSize ) SAL_OVERRIDE; @@ -450,7 +450,7 @@ UCBStream::~UCBStream() } } -sal_uInt64 UCBStream::GetData( void* pData, sal_uInt64 nSize ) +sal_Size UCBStream::GetData(void* pData, sal_Size nSize) { try { @@ -481,7 +481,7 @@ sal_uInt64 UCBStream::GetData( void* pData, sal_uInt64 nSize ) return 0; } -sal_uInt64 UCBStream::PutData( const void* pData, sal_uInt64 nSize ) +sal_Size UCBStream::PutData(const void* pData, sal_Size nSize) { try { |