Mercurial > hg > orthanc
comparison Core/Images/PngWriter.cpp @ 3402:cf31b5bacce3
removing unneeded casts
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Jun 2019 15:06:17 +0200 |
parents | 4e43e67f8ecf |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3401:962e5f00744b | 3402:cf31b5bacce3 |
---|---|
241 static void MemoryCallback(png_structp png_ptr, | 241 static void MemoryCallback(png_structp png_ptr, |
242 png_bytep data, | 242 png_bytep data, |
243 png_size_t size) | 243 png_size_t size) |
244 { | 244 { |
245 ChunkedBuffer* buffer = reinterpret_cast<ChunkedBuffer*>(png_get_io_ptr(png_ptr)); | 245 ChunkedBuffer* buffer = reinterpret_cast<ChunkedBuffer*>(png_get_io_ptr(png_ptr)); |
246 buffer->AddChunk(reinterpret_cast<const char*>(data), size); | 246 buffer->AddChunk(data, size); |
247 } | 247 } |
248 | 248 |
249 | 249 |
250 | 250 |
251 void PngWriter::WriteToMemoryInternal(std::string& png, | 251 void PngWriter::WriteToMemoryInternal(std::string& png, |