summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2025-02-25 16:39:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2025-02-25 19:37:56 +0100
commitd883aab37dc9b04ed1dccf139fca9d709d29317b (patch)
tree2cad7b7d49440ef6cf8610156789ea2a0ae0108e /package
parentd0a10d0a26343bc5c4dca188ffae6c1b5801116a (diff)
loplugin:constantparam
Change-Id: Iba5ce1d44e52610e985e97d299571cf3387d938a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182180 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/Inflater.cxx4
-rw-r--r--package/source/zipapi/ZipFile.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/package/source/zipapi/Inflater.cxx b/package/source/zipapi/Inflater.cxx
index 5a09415abe6c..3c2a59d78111 100644
--- a/package/source/zipapi/Inflater.cxx
+++ b/package/source/zipapi/Inflater.cxx
@@ -134,7 +134,7 @@ sal_Int32 Inflater::doInflateBytes (Sequence < sal_Int8 > &rBuffer, sal_Int32 n
return 0;
}
-InflaterBytes::InflaterBytes(bool bNoWrap)
+InflaterBytes::InflaterBytes()
: bFinished(false),
nOffset(0),
nLength(0),
@@ -144,7 +144,7 @@ InflaterBytes::InflaterBytes(bool bNoWrap)
/* memset to 0 to set zalloc/opaque etc */
memset (pStream.get(), 0, sizeof(*pStream));
sal_Int32 nRes;
- nRes = inflateInit2(pStream.get(), bNoWrap ? -MAX_WBITS : MAX_WBITS);
+ nRes = inflateInit2(pStream.get(), -MAX_WBITS);
switch (nRes)
{
case Z_OK:
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index 24241e66af2e..63097ccb8710 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -1905,7 +1905,7 @@ void ZipFile::getSizeAndCRC( sal_Int64 nOffset, sal_Int64 nCompressedSize, sal_I
CRC32 aCRC;
sal_Int64 nRealSize = 0;
- ZipUtils::InflaterBytes aInflaterLocal( true );
+ ZipUtils::InflaterBytes aInflaterLocal;
sal_Int32 nBlockSize = static_cast< sal_Int32 > (::std::min( nCompressedSize, static_cast< sal_Int64 >( 32000 ) ) );
std::vector < sal_Int8 > aBuffer(nBlockSize);
std::vector< sal_Int8 > aData( nBlockSize );