From: Samuel Rødal Date: Tue, 26 Jul 2011 09:54:15 +0000 (+0200) Subject: Compile fix for QImage autotest. X-Git-Tag: qt-v5.0.0-alpha1~3626^2~246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec64421cec8492989132ab26fb434b2145942574;p=profile%2Fivi%2Fqtbase.git Compile fix for QImage autotest. QImage::numBytes() is deprecated, QImage::byteCount() should be used instead. Change-Id: I0f885b91a49de59eb371da931bb64d2d57fcc0d0 Reviewed-on: http://codereview.qt.nokia.com/2177 Reviewed-by: Qt Sanity Bot Reviewed-by: Jørgen Lind --- diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp index 4336feb..dce2957 100644 --- a/tests/auto/qimage/tst_qimage.cpp +++ b/tests/auto/qimage/tst_qimage.cpp @@ -1986,7 +1986,7 @@ void tst_QImage::rgbSwapped() QCOMPARE(image, imageSwappedTwice); - QCOMPARE(memcmp(image.constBits(), imageSwappedTwice.constBits(), image.numBytes()), 0); + QCOMPARE(memcmp(image.constBits(), imageSwappedTwice.constBits(), image.byteCount()), 0); } void tst_QImage::deepCopyWhenPaintingActive()