summaryrefslogtreecommitdiff
path: root/tools/source/zcodec
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:08:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:27 +0100
commit9826b9cf5b8c78fe25eaab1009e0c95142678ecb (patch)
tree0bd7d583c44dbaa30eca8619ef5dae681aede302 /tools/source/zcodec
parent93a8ef5a2d3b23b193261177eee4fb13758dd7cc (diff)
Clean up C-style casts from pointers to void
Change-Id: Ife048a705e899870a8b1d9987b109d5c0cd80599
Diffstat (limited to 'tools/source/zcodec')
-rw-r--r--tools/source/zcodec/zcodec.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index 9693ccdc3620..fdb28829d3c4 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -25,7 +25,7 @@
#include <rtl/crc.h>
#include <osl/endian.h>
-#define PZSTREAM ((z_stream*) mpsC_Stream)
+#define PZSTREAM static_cast<z_stream*>(mpsC_Stream)
/* gzip flag byte */
// GZ_ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
@@ -57,7 +57,7 @@ ZCodec::ZCodec( sal_uIntPtr nInBufSize, sal_uIntPtr nOutBufSize )
ZCodec::~ZCodec()
{
- delete (z_stream*) mpsC_Stream;
+ delete static_cast<z_stream*>(mpsC_Stream);
}
void ZCodec::BeginCompression( int nCompressLevel, bool updateCrc, bool gzLib )