diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-11 10:44:30 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-08-07 12:16:15 +0000 |
commit | 36fdeb50941e3e2b0c4cd1b3343c3e337534357d (patch) | |
tree | 70a057ff1c04186bdbe36c07fcec2e4038b0281c | |
parent | 73f25d1a411ede3f78e8468999b4d362c51180d3 (diff) | |
download | qtimageformats-36fdeb50941e3e2b0c4cd1b3343c3e337534357d.tar.gz |
Fix deprecation warningsv5.10.0-beta3v5.10.0-beta2v5.10.0-beta1v5.10.0-alpha1
Use new sizeInBytes() method.
Change-Id: I3fa5969ac04e2edb87a06f132dc0b60e65718b81
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
-rw-r--r-- | src/plugins/imageformats/webp/qwebphandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<const uint8_t*>(m_iter.fragment.bytes), m_iter.fragment.size, |