summaryrefslogtreecommitdiff
path: root/include/tools/zcodec.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/zcodec.hxx')
-rw-r--r--include/tools/zcodec.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx
index 17e44a500a41..c9c71bf752b1 100644
--- a/include/tools/zcodec.hxx
+++ b/include/tools/zcodec.hxx
@@ -22,6 +22,7 @@
#include <tools/toolsdllapi.h>
#include <tools/long.hxx>
+#include <memory>
#define ZCODEC_NO_COMPRESSION 0
#define ZCODEC_DEFAULT_COMPRESSION 6
@@ -40,11 +41,11 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC ZCodec
State meState;
bool mbStatus;
bool mbFinish;
- sal_uInt8* mpInBuf;
+ std::unique_ptr<sal_uInt8[]> mpInBuf;
size_t mnInBufSize;
size_t mnInToRead;
SvStream* mpOStm;
- sal_uInt8* mpOutBuf;
+ std::unique_ptr<sal_uInt8[]> mpOutBuf;
size_t mnOutBufSize;
int mnCompressLevel;