Commit 36fdeb50 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Fix deprecation warnings


Use new sizeInBytes() method.

Change-Id: I3fa5969ac04e2edb87a06f132dc0b60e65718b81
Reviewed-by: default avatarEirik Aavitsland <eirik.aavitsland@qt.io>
parent 73f25d1a
Branches
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -177,7 +177,7 @@ bool QWebpHandler::read(QImage *image)
QImage frame(m_iter.width, m_iter.height, QImage::Format_ARGB32);
uint8_t *output = frame.bits();
size_t output_size = frame.byteCount();
size_t output_size = frame.sizeInBytes();
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
if (!WebPDecodeBGRAInto(
reinterpret_cast<const uint8_t*>(m_iter.fragment.bytes), m_iter.fragment.size,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment