diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 13:43:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-29 09:38:51 +0200 |
commit | 80343351c9444bba7a5ac98f22fddbbecf5abb9f (patch) | |
tree | 4341e3ba5903482c45971bac14c74c2caee10045 /package | |
parent | 37f9fdc11c4e95d6a34cb515a454503256a82c63 (diff) |
loplugin:constantparam (2)
Change-Id: I528f22876497f87159e3b9453362ebbfb55b7092
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/Deflater.cxx | 6 | ||||
-rw-r--r-- | package/source/zipapi/ZipOutputEntry.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/package/source/zipapi/Deflater.cxx b/package/source/zipapi/Deflater.cxx index d50317357ef1..9d9bbe30bb70 100644 --- a/package/source/zipapi/Deflater.cxx +++ b/package/source/zipapi/Deflater.cxx @@ -108,10 +108,10 @@ void Deflater::finish( ) { bFinish = true; } -sal_Int32 Deflater::doDeflateSegment( uno::Sequence< sal_Int8 >& rBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength ) +sal_Int32 Deflater::doDeflateSegment( uno::Sequence< sal_Int8 >& rBuffer, sal_Int32 nNewLength ) { - OSL_ASSERT( !(nNewOffset < 0 || nNewLength < 0 || nNewOffset + nNewLength > rBuffer.getLength())); - return doDeflateBytes(rBuffer, nNewOffset, nNewLength); + OSL_ASSERT( !(nNewLength < 0 || nNewLength > rBuffer.getLength())); + return doDeflateBytes(rBuffer, /*nNewOffset*/0, nNewLength); } sal_Int64 Deflater::getTotalIn( ) { diff --git a/package/source/zipapi/ZipOutputEntry.cxx b/package/source/zipapi/ZipOutputEntry.cxx index 2b6410700971..5aa16a0738a5 100644 --- a/package/source/zipapi/ZipOutputEntry.cxx +++ b/package/source/zipapi/ZipOutputEntry.cxx @@ -192,7 +192,7 @@ void ZipOutputEntry::write( const Sequence< sal_Int8 >& rBuffer ) void ZipOutputEntry::doDeflate() { - sal_Int32 nLength = m_aDeflater.doDeflateSegment(m_aDeflateBuffer, 0, m_aDeflateBuffer.getLength()); + sal_Int32 nLength = m_aDeflater.doDeflateSegment(m_aDeflateBuffer, m_aDeflateBuffer.getLength()); if ( nLength > 0 ) { |