Don't use RefCount int operators
authorJoão Abecasis <joao.abecasis@nokia.com>
Tue, 24 Jan 2012 12:51:41 +0000 (13:51 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 13:10:17 +0000 (14:10 +0100)
The previous patch missed this, which was hidden inside #ifdefs.

Change-Id: Iba1417d4191b6931afb549022768f3e3a2cf727d
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
tests/auto/corelib/tools/qstring/tst_qstring.cpp

index ed525e3..622d494 100644 (file)
@@ -5120,7 +5120,7 @@ void tst_QString::literals()
 
     QVERIFY(str.length() == 4);
     QVERIFY(str == QLatin1String("abcd"));
-    QVERIFY(str.data_ptr()->ref == -1);
+    QVERIFY(str.data_ptr()->ref.isStatic());
     QVERIFY(str.data_ptr()->offset == 0);
 
     const QChar *s = str.constData();