summaryrefslogtreecommitdiff
path: root/package/source/zipapi
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-17 11:40:41 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-18 06:00:58 +0000
commit6b84445e33cb13602a0da9ab92d382748bcbbd51 (patch)
tree8825b514307e239eb01fc93e9ef89d02ae51d64c /package/source/zipapi
parentbdcef25c5cfacbaac7d439a7ad2106308dc3a7e5 (diff)
loplugin:constantparam in package
Change-Id: Ifd9bb81ff9ccfaf5093c04024d7ea93946b00e66 Reviewed-on: https://gerrit.libreoffice.org/23329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'package/source/zipapi')
-rw-r--r--package/source/zipapi/Deflater.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/source/zipapi/Deflater.cxx b/package/source/zipapi/Deflater.cxx
index ce3df035b612..6af18af08dc7 100644
--- a/package/source/zipapi/Deflater.cxx
+++ b/package/source/zipapi/Deflater.cxx
@@ -35,14 +35,14 @@ Deflater::~Deflater()
{
end();
}
-void Deflater::init (sal_Int32 nLevelArg, sal_Int32 nStrategyArg, bool bNowrap)
+void Deflater::init (sal_Int32 nLevelArg, bool bNowrap)
{
pStream = new z_stream;
/* Memset it to 0...sets zalloc/zfree/opaque to NULL */
memset (pStream, 0, sizeof(*pStream));
switch (deflateInit2(pStream, nLevelArg, Z_DEFLATED, bNowrap? -MAX_WBITS : MAX_WBITS,
- DEF_MEM_LEVEL, nStrategyArg))
+ DEF_MEM_LEVEL, DEFAULT_STRATEGY))
{
case Z_OK:
break;
@@ -63,7 +63,7 @@ Deflater::Deflater(sal_Int32 nSetLevel, bool bNowrap)
, nOffset(0)
, nLength(0)
{
- init(nSetLevel, DEFAULT_STRATEGY, bNowrap);
+ init(nSetLevel, bNowrap);
}
sal_Int32 Deflater::doDeflateBytes (uno::Sequence < sal_Int8 > &rBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength)