summaryrefslogtreecommitdiff
path: root/include/tools/zcodec.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-21 10:59:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-21 15:30:14 +0200
commit5271e5b01be208a60a295fb06b867eb438387272 (patch)
tree5aeb37e2bdc07475ee1eafafaf17a43801fe4b03 /include/tools/zcodec.hxx
parentf5e44ac7e681ef50e333e102ce2aebba0f8b8ecb (diff)
nMemUsage is always MAX_MEM_USAGE
...so just use zlib.h's MAX_MEM_LEVEL directly. Change-Id: I76d73f665df242bfb180b76aa7054cf8ddbe9e67
Diffstat (limited to 'include/tools/zcodec.hxx')
-rw-r--r--include/tools/zcodec.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx
index 867e27a86f0a..f96b6ce3122b 100644
--- a/include/tools/zcodec.hxx
+++ b/include/tools/zcodec.hxx
@@ -27,8 +27,6 @@
#define DEFAULT_IN_BUFSIZE (0x00008000UL)
#define DEFAULT_OUT_BUFSIZE (0x00008000UL)
-#define MAX_MEM_USAGE 8
-
// memory requirement using compress:
// [ INBUFFER ] + [ OUTBUFFER ] + 128KB + 1 << (MEM_USAGE+9)
// memory requirement using decompress:
@@ -57,7 +55,6 @@ private:
sal_uIntPtr mbInit;
bool mbStatus;
bool mbFinish;
- sal_uIntPtr mnMemUsage;
SvStream* mpIStm;
sal_uInt8* mpInBuf;
sal_uIntPtr mnInBufSize;
@@ -74,7 +71,7 @@ private:
void ImplWriteBack();
public:
- ZCodec( sal_uIntPtr nInBuf = DEFAULT_IN_BUFSIZE, sal_uIntPtr nOutBuf = DEFAULT_OUT_BUFSIZE, sal_uIntPtr nMemUsage = MAX_MEM_USAGE );
+ ZCodec( sal_uIntPtr nInBuf = DEFAULT_IN_BUFSIZE, sal_uIntPtr nOutBuf = DEFAULT_OUT_BUFSIZE );
virtual ~ZCodec();
virtual void BeginCompression( sal_uIntPtr nCompressMethod = ZCODEC_DEFAULT );