Mercurial > hg > orthanc
comparison Core/FileFormats/PngWriter.cpp @ 656:08eca5d86aad
fixes to cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Nov 2013 11:19:31 +0100 |
parents | 51892be15618 |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
655:93adc693cc60 | 656:08eca5d86aad |
---|---|
229 | 229 |
230 static void MemoryCallback(png_structp png_ptr, | 230 static void MemoryCallback(png_structp png_ptr, |
231 png_bytep data, | 231 png_bytep data, |
232 png_size_t size) | 232 png_size_t size) |
233 { | 233 { |
234 ChunkedBuffer* buffer = (ChunkedBuffer*) png_get_io_ptr(png_ptr); | 234 ChunkedBuffer* buffer = reinterpret_cast<ChunkedBuffer*>(png_get_io_ptr(png_ptr)); |
235 buffer->AddChunk(reinterpret_cast<const char*>(data), size); | 235 buffer->AddChunk(reinterpret_cast<const char*>(data), size); |
236 } | 236 } |
237 | 237 |
238 | 238 |
239 | 239 |