summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:30:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:35 +0100
commitf474984cd7b8a29f410a686d540859226039bfe0 (patch)
tree2f2458f82692860849d1d4f122a28982d7857272 /sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
parent1a9e23609b56f2c45d7fbdf32d9f8a43bc3908ea (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I207f23b084013f9ce2fcf087a7f335bd8a194f50
Diffstat (limited to 'sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
index 5fb6967befef..37ec3b992be0 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
@@ -84,7 +84,7 @@ sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, Outp
aStream.opaque = Z_NULL;
deflateInit( &aStream, Z_BEST_COMPRESSION );
aStream.avail_in = uInt(i_nLen);
- aStream.next_in = (Bytef*)i_pBuf;
+ aStream.next_in = const_cast<Bytef*>(i_pBuf);
sal_uInt8 aOutBuf[ 32768 ];
do