comparison Core/FileFormats/PngReader.cpp @ 656:08eca5d86aad

fixes to cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:19:31 +0100
parents f3d4193c571a
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
655:93adc693cc60 656:08eca5d86aad
240 240
241 void PngReader::PngRabi::MemoryCallback(png_structp png_ptr, 241 void PngReader::PngRabi::MemoryCallback(png_structp png_ptr,
242 png_bytep outBytes, 242 png_bytep outBytes,
243 png_size_t byteCountToRead) 243 png_size_t byteCountToRead)
244 { 244 {
245 MemoryBuffer* from = (MemoryBuffer*) png_get_io_ptr(png_ptr); 245 MemoryBuffer* from = reinterpret_cast<MemoryBuffer*>(png_get_io_ptr(png_ptr));
246 246
247 if (!from->ok_) 247 if (!from->ok_)
248 { 248 {
249 return; 249 return;
250 } 250 }