From 6fcfae99d3615c7a850e4933691763097078c8e4 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Mon, 7 Nov 2011 13:39:35 +0100 Subject: Remove warnings from deprecated atomic operators in autotests Use QAtomic*::load() and ::store() instead of the deprecated cast, assignment, and comparison operators. These will be removed in the near future. The tests for these particular operators have not been changed, though, as the change to remove the operators will also remove the respective tests. Change-Id: I2f24d18992af0c6e0f487d707218e4e84f4bdd12 Reviewed-by: Friedemann Kleint --- tests/auto/corelib/thread/qmutex/tst_qmutex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/corelib/thread/qmutex/tst_qmutex.cpp') diff --git a/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp b/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp index cc2fe653b7..cc36af8b56 100644 --- a/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp +++ b/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp @@ -617,8 +617,8 @@ void tst_QMutex::moreStress() QVERIFY(threads[0].wait(one_minute + 10000)); for (int i = 1; i < threadCount; ++i) QVERIFY(threads[i].wait(10000)); - qDebug("locked %d times", int(MoreStressTestThread::lockCount)); - QCOMPARE(int(MoreStressTestThread::errorCount), 0); + qDebug("locked %d times", MoreStressTestThread::lockCount.load()); + QCOMPARE(MoreStressTestThread::errorCount.load(), 0); } -- cgit v1.2.3