From 36fdeb50941e3e2b0c4cd1b3343c3e337534357d Mon Sep 17 00:00:00 2001
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
Date: Tue, 11 Jul 2017 10:44:30 +0200
Subject: [PATCH] Fix deprecation warnings

Use new sizeInBytes() method.

Change-Id: I3fa5969ac04e2edb87a06f132dc0b60e65718b81
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
---
 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 ce90158a..f47040a2 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<const uint8_t*>(m_iter.fragment.bytes), m_iter.fragment.size,
-- 
GitLab