diff 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
line wrap: on
line diff
--- a/Core/FileFormats/PngWriter.cpp	Wed Oct 30 11:56:28 2013 +0100
+++ b/Core/FileFormats/PngWriter.cpp	Mon Nov 04 11:19:31 2013 +0100
@@ -231,7 +231,7 @@
                              png_bytep data, 
                              png_size_t size)
   {
-    ChunkedBuffer* buffer = (ChunkedBuffer*) png_get_io_ptr(png_ptr);
+    ChunkedBuffer* buffer = reinterpret_cast<ChunkedBuffer*>(png_get_io_ptr(png_ptr));
     buffer->AddChunk(reinterpret_cast<const char*>(data), size);
   }