Commit 0a71cf73 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

qimagevideobuffer.cpp: Fix deprecation warning


video/qimagevideobuffer.cpp:92:44: warning: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes [-Wdeprecated-declarations]

Change-Id: I029083760b255e0bce48ab40e059da9c0a578f91
Reviewed-by: default avatarAndy Nichols <andy.nichols@qt.io>
Showing with 1 addition and 1 deletion
...@@ -89,7 +89,7 @@ uchar *QImageVideoBuffer::map(MapMode mode, int *numBytes, int *bytesPerLine) ...@@ -89,7 +89,7 @@ uchar *QImageVideoBuffer::map(MapMode mode, int *numBytes, int *bytesPerLine)
d->mapMode = mode; d->mapMode = mode;
if (numBytes) if (numBytes)
*numBytes = d->image.byteCount(); *numBytes = int(d->image.sizeInBytes());
if (bytesPerLine) if (bytesPerLine)
*bytesPerLine = d->image.bytesPerLine(); *bytesPerLine = d->image.bytesPerLine();
......
Supports Markdown
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