From 36fdeb50941e3e2b0c4cd1b3343c3e337534357d Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 11 Jul 2017 10:44:30 +0200 Subject: Fix deprecation warnings Use new sizeInBytes() method. Change-Id: I3fa5969ac04e2edb87a06f132dc0b60e65718b81 Reviewed-by: Eirik Aavitsland --- src/plugins/imageformats/webp/qwebphandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/imageformats/webp/qwebphandler.cpp b/src/plugins/imageformats/webp/qwebphandler.cpp index ce90158..f47040a 100644 --- a/src/plugins/imageformats/webp/qwebphandler.cpp +++ b/src/plugins/imageformats/webp/qwebphandler.cpp @@ -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(m_iter.fragment.bytes), m_iter.fragment.size, -- cgit v1.2.3