diff options
Diffstat (limited to 'vcl/source/gdi/pngwrite.cxx')
-rw-r--r-- | vcl/source/gdi/pngwrite.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx index ac9bdd2da454..0b61f75eeb5e 100644 --- a/vcl/source/gdi/pngwrite.cxx +++ b/vcl/source/gdi/pngwrite.cxx @@ -474,7 +474,7 @@ void PNGWriterImpl::ImplWriteIDAT() { nBytes = nBytesToWrite <= mnMaxChunkSize ? nBytesToWrite : mnMaxChunkSize; ImplOpenChunk(PNGCHUNK_IDAT); - ImplWriteChunk((unsigned char*)aOStm.GetData() + (nIDATSize - nBytesToWrite), nBytes); + ImplWriteChunk(const_cast<unsigned char *>(static_cast<unsigned char const *>(aOStm.GetData())) + (nIDATSize - nBytesToWrite), nBytes); nBytesToWrite -= nBytes; } } |