diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:32:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:39 +0100 |
commit | a98c1692a6f98d73b38692131eebe7acce963299 (patch) | |
tree | 7bfbc2afb2deff8615a0cc6f9bc33ae4d62f31db /tools/source/zcodec/zcodec.cxx | |
parent | b627a4d98f66e1c7b36d12bc4683c7970c89d69f (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I5493b2337dad102a4b22c6a6d646b4b0fd04e247
Diffstat (limited to 'tools/source/zcodec/zcodec.cxx')
-rw-r--r-- | tools/source/zcodec/zcodec.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx index 5069b7c7d750..9693ccdc3620 100644 --- a/tools/source/zcodec/zcodec.cxx +++ b/tools/source/zcodec/zcodec.cxx @@ -177,7 +177,7 @@ long ZCodec::Write( SvStream& rOStm, const sal_uInt8* pData, sal_uIntPtr nSize ) assert(&rOStm == mpOStm); PZSTREAM->avail_in = nSize; - PZSTREAM->next_in = (unsigned char*)pData; + PZSTREAM->next_in = const_cast<unsigned char*>(pData); while ( PZSTREAM->avail_in || ( PZSTREAM->avail_out == 0 ) ) { |