diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 14:33:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 15:30:18 +0200 |
commit | 4d2113250fa7ed62fe2c53ed0f76e3de5875cb81 (patch) | |
tree | 902870edffaf45ded4acf7ff2d125cb77f41bc07 /tools | |
parent | Remove unused ZCodec::IsFinished (diff) | |
download | core-4d2113250fa7ed62fe2c53ed0f76e3de5875cb81.tar.gz core-4d2113250fa7ed62fe2c53ed0f76e3de5875cb81.zip |
ZCodec::UpdateCRC is private
Change-Id: I2103f8a323d0454bdd1c779aadb99889ae1cf6e5
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/zcodec/zcodec.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx index a672e7669a1a..23abb0b0880d 100644 --- a/tools/source/zcodec/zcodec.cxx +++ b/tools/source/zcodec/zcodec.cxx @@ -159,7 +159,7 @@ long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm ) mnInToRead -= nInToRead; if ( mbUpdateCrc ) - mnCRC = UpdateCRC( mnCRC, mpInBuf, nInToRead ); + UpdateCRC( mpInBuf, nInToRead ); } err = inflate( PZSTREAM, Z_NO_FLUSH ); @@ -228,7 +228,7 @@ long ZCodec::Read( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize ) mnInToRead -= nInToRead; if ( mbUpdateCrc ) - mnCRC = UpdateCRC( mnCRC, mpInBuf, nInToRead ); + UpdateCRC( mpInBuf, nInToRead ); } err = inflate( PZSTREAM, Z_NO_FLUSH ); @@ -282,7 +282,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize mnInToRead -= nInToRead; if ( mbUpdateCrc ) - mnCRC = UpdateCRC( mnCRC, mpInBuf, nInToRead ); + UpdateCRC( mpInBuf, nInToRead ); } err = inflate( PZSTREAM, Z_NO_FLUSH ); @@ -309,7 +309,7 @@ void ZCodec::ImplWriteBack() if ( nAvail ) { if ( mbInit & 2 && mbUpdateCrc ) - mnCRC = UpdateCRC( mnCRC, mpOutBuf, nAvail ); + UpdateCRC( mpOutBuf, nAvail ); mpOStm->Write( PZSTREAM->next_out = mpOutBuf, nAvail ); PZSTREAM->avail_out = mnOutBufSize; } @@ -408,9 +408,9 @@ void ZCodec::ImplInitBuf ( bool nIOFlag ) } } -sal_uIntPtr ZCodec::UpdateCRC ( sal_uIntPtr nLatestCRC, sal_uInt8* pSource, long nDatSize) +void ZCodec::UpdateCRC ( sal_uInt8* pSource, long nDatSize) { - return rtl_crc32( nLatestCRC, pSource, nDatSize ); + mnCRC = rtl_crc32( mnCRC, pSource, nDatSize ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |