summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-21 10:03:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-21 15:30:13 +0200
commitfe1e1d1292973211f0edfa64c05279ca59634652 (patch)
tree49e5c18c7793d72aaf8c0517bee3268d256bfa6a
parentfaac2327e95b5ed735ddb3f5f76a583bbe504b52 (diff)
A single ZCodec ctor suffices
Change-Id: Ib831b80afcdde98928a2759616810923348f65e8
-rw-r--r--include/tools/zcodec.hxx3
-rw-r--r--tools/source/zcodec/zcodec.cxx18
2 files changed, 1 insertions, 20 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx
index 8bbbcd66ddd8..867e27a86f0a 100644
--- a/include/tools/zcodec.hxx
+++ b/include/tools/zcodec.hxx
@@ -74,8 +74,7 @@ private:
void ImplWriteBack();
public:
- ZCodec( sal_uIntPtr nInBuf, sal_uIntPtr nOutBuf, sal_uIntPtr nMemUsage = MAX_MEM_USAGE );
- ZCodec();
+ ZCodec( sal_uIntPtr nInBuf = DEFAULT_IN_BUFSIZE, sal_uIntPtr nOutBuf = DEFAULT_OUT_BUFSIZE, sal_uIntPtr nMemUsage = MAX_MEM_USAGE );
virtual ~ZCodec();
virtual void BeginCompression( sal_uIntPtr nCompressMethod = ZCODEC_DEFAULT );
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index 3fce309306f3..4eeac995964a 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -55,24 +55,6 @@ ZCodec::ZCodec( sal_uIntPtr nInBufSize, sal_uIntPtr nOutBufSize, sal_uIntPtr nMe
mpsC_Stream = new z_stream;
}
-ZCodec::ZCodec()
- : mbInit(0)
- , mbStatus(false)
- , mbFinish(false)
- , mnMemUsage(MAX_MEM_USAGE)
- , mpIStm(NULL)
- , mpInBuf(NULL)
- , mnInBufSize(DEFAULT_IN_BUFSIZE)
- , mnInToRead(0)
- , mpOStm(NULL)
- , mpOutBuf(NULL)
- , mnOutBufSize(DEFAULT_OUT_BUFSIZE)
- , mnCRC(0)
- , mnCompressMethod(0)
-{
- mpsC_Stream = new z_stream;
-}
-
ZCodec::~ZCodec()
{
delete (z_stream*) mpsC_Stream;