diff --git a/src/imageformats/heif.cpp b/src/imageformats/heif.cpp index eea93c7..ba5d2ce 100644 --- a/src/imageformats/heif.cpp +++ b/src/imageformats/heif.cpp @@ -405,7 +405,7 @@ bool HEIFHandler::ensureDecoder() try { heif::Context ctx; - ctx.read_from_memory_without_copy((const void *)(buffer.constData()), buffer.size()); + ctx.read_from_memory_without_copy(static_cast(buffer.constData()), buffer.size()); heif::ImageHandle handle = ctx.get_primary_image_handle();