summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-07-26 11:54:15 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2011-07-26 12:02:57 +0200
commitec64421cec8492989132ab26fb434b2145942574 (patch)
treef866029cb859ed7bf7590b889face2e83923fffc
parente4042435ba15e6da669f541cd43580f85dbeae3f (diff)
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 <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
-rw-r--r--tests/auto/qimage/tst_qimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp
index 4336feba7a..dce2957ae4 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()