From 632840cb0f5ad355d87fc040b015d04af86371ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Abecasis?= Date: Wed, 1 Feb 2012 11:51:08 +0100 Subject: Make clear() use the shared null inline There isn't a good reason to impose the additional library call and using the shared null here matches existing behavior in QByteArray, QString and QVector. Change-Id: Idd0bb9c7411db52630402534a11d87cbf2b1e7ba Reviewed-by: Robin Burchell --- tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp index 46985c1e3b..ff0d8bd6de 100644 --- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp +++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp @@ -242,7 +242,7 @@ void tst_QArrayData::simpleVector() QVERIFY(v1.isNull()); QVERIFY(v2.isNull()); QVERIFY(v3.isNull()); - QVERIFY(!v4.isNull()); + QVERIFY(v4.isNull()); QVERIFY(!v5.isNull()); QVERIFY(!v6.isNull()); QVERIFY(!v7.isNull()); @@ -306,7 +306,7 @@ void tst_QArrayData::simpleVector() QVERIFY(v1.isSharedWith(v2)); QVERIFY(v1.isSharedWith(v3)); - QVERIFY(!v1.isSharedWith(v4)); + QVERIFY(v1.isSharedWith(v4)); QVERIFY(!v1.isSharedWith(v5)); QVERIFY(!v1.isSharedWith(v6)); -- cgit v1.2.3