diff --git a/src/Magnum/Image.h b/src/Magnum/Image.h index 5e34ed6e6..a672acb96 100644 --- a/src/Magnum/Image.h +++ b/src/Magnum/Image.h @@ -204,7 +204,7 @@ template class Image { * @deprecated Use @ref setData(PixelFormat, PixelType, const VectorTypeFor&, Containers::Array&&) * instead. */ - void CORRADE_DEPRECATED("use setData(PixelFormat, PixelType, const VectorTypeFor&, Containers::ArrayView) instead") setData(PixelFormat format, PixelType type, const VectorTypeFor& size, void* data) { + void CORRADE_DEPRECATED("use setData(PixelFormat, PixelType, const VectorTypeFor&, Containers::ArrayView) instead") setData(PixelFormat format, PixelType type, const VectorTypeFor& size, void* data) { setData({}, format, type, size, Containers::Array{reinterpret_cast(data), Implementation::imageDataSizeFor(format, type, size)}); } #endif