diff options
author | tymyjan <tymyjan@yahoo.co.uk> | 2016-06-04 23:54:47 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-27 10:18:49 +0000 |
commit | 08fc0da4033b8ea2b3ae67aa06175e839771396b (patch) | |
tree | f4d64a97d2cf6052792f83414492de946a859a9b /include/tools | |
parent | f7c888994db744396c69aa1be720c2089ada5798 (diff) |
tdf#75280 Cleaning up of sal_uIntPtr usage #1a
Change-Id: Ief2cc6ab03316c2530d386d662db21ca1c9ddb30
Reviewed-on: https://gerrit.libreoffice.org/25898
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/zcodec.hxx | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx index 023811557d51..7cce2a4fe122 100644 --- a/include/tools/zcodec.hxx +++ b/include/tools/zcodec.hxx @@ -40,13 +40,13 @@ class TOOLS_DLLPUBLIC ZCodec bool mbStatus; bool mbFinish; sal_uInt8* mpInBuf; - sal_uIntPtr mnInBufSize; - sal_uIntPtr mnInToRead; + size_t mnInBufSize; + size_t mnInToRead; SvStream* mpOStm; sal_uInt8* mpOutBuf; - sal_uIntPtr mnOutBufSize; + size_t mnOutBufSize; - sal_uIntPtr mnCRC; + sal_uInt32 mnCRC; int mnCompressLevel; bool mbUpdateCrc; bool mbGzLib; @@ -55,7 +55,6 @@ class TOOLS_DLLPUBLIC ZCodec void InitCompress(); void InitDecompress(SvStream & inStream); void ImplWriteBack(); - void UpdateCRC( sal_uInt8* pSource, long nDatSize ); public: @@ -69,14 +68,14 @@ public: long Decompress( SvStream& rIStm, SvStream& rOStm ); bool AttemptDecompression( SvStream& rIStm, SvStream& rOStm ); - void Write( SvStream& rOStm, const sal_uInt8* pData, sal_uIntPtr nSize ); - long Read( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize ); - long ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize ); + void Write( SvStream& rOStm, const sal_uInt8* pData, sal_uInt32 nSize ); + long Read( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize ); + long ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize ); - void SetBreak( sal_uIntPtr ); - sal_uIntPtr GetBreak(); - void SetCRC( sal_uIntPtr nCurrentCRC ); - sal_uIntPtr GetCRC() { return mnCRC;} + void SetBreak( size_t ); + size_t GetBreak(); + void SetCRC( sal_uInt32 nCurrentCRC ); + sal_uInt32 GetCRC() { return mnCRC;} }; #endif |