Remove warnings from deprecated atomic operators in autotests
authorBradley T. Hughes <bradley.hughes@nokia.com>
Mon, 7 Nov 2011 12:39:35 +0000 (13:39 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 Nov 2011 09:32:10 +0000 (10:32 +0100)
commit6fcfae99d3615c7a850e4933691763097078c8e4
tree52267f0f8a8c42c8bd07a7f624934f0919fa97e4
parent2f90c4e40ec3e15ba4aeaad178e154a3538c46c2
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 <Friedemann.Kleint@nokia.com>
12 files changed:
tests/auto/corelib/concurrent/qfuture/tst_qfuture.cpp
tests/auto/corelib/concurrent/qtconcurrentiteratekernel/tst_qtconcurrentiteratekernel.cpp
tests/auto/corelib/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
tests/auto/corelib/concurrent/qtconcurrentrun/tst_qtconcurrentrun.cpp
tests/auto/corelib/concurrent/qtconcurrentthreadengine/tst_qtconcurrentthreadengine.cpp
tests/auto/corelib/concurrent/qthreadpool/tst_qthreadpool.cpp
tests/auto/corelib/thread/qatomicint/tst_qatomicint.cpp
tests/auto/corelib/thread/qatomicpointer/tst_qatomicpointer.cpp
tests/auto/corelib/thread/qmutex/tst_qmutex.cpp
tests/auto/corelib/thread/qthread/tst_qthread.cpp
tests/auto/corelib/tools/qscopedpointer/tst_qscopedpointer.cpp
tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp