Make all uses of QBasicAtomicInt and Pointer use load() and store()
authorThiago Macieira <thiago@kde.org>
Tue, 5 Jul 2011 21:46:19 +0000 (23:46 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 3 Oct 2011 05:57:41 +0000 (07:57 +0200)
commit5bfeab8749ce6820d55135b81665a7231d3b1504
tree152569571114c53d4cdfaa0013307267cb3379a6
parent5613c9722adee921e16682c0a035f2a7567bd346
Make all uses of QBasicAtomicInt and Pointer use load() and store()

Most of these changes are search-and-replace of d->ref ==, d->ref !=
and d->ref =.

The QBasicAtomicPointer in QObjectPrivate::Connection didn't need to
be basic, so I made it QAtomicPointer.

Change-Id: Ie3271abd1728af599f9ab17c6f4868e475f17bb6
Reviewed-on: http://codereview.qt-project.org/5030
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
25 files changed:
src/corelib/animation/qvariantanimation.cpp
src/corelib/global/qglobal.h
src/corelib/kernel/qmetatype.h
src/corelib/kernel/qobject.cpp
src/corelib/kernel/qobject_p.h
src/corelib/thread/qmutex.cpp
src/corelib/thread/qmutex.h
src/corelib/thread/qmutex_linux.cpp
src/corelib/tools/qcontiguouscache.h
src/corelib/tools/qrefcount.h
src/corelib/tools/qshareddata.h
src/corelib/tools/qsharedpointer.cpp
src/corelib/tools/qsharedpointer_impl.h
src/corelib/tools/qsimd.cpp
src/gui/painting/qregion.cpp
src/opengl/qglcolormap.cpp
src/opengl/qglcolormap.h
src/testlib/qtestlog.cpp
tests/auto/corelib/thread/qatomicpointer/tst_qatomicpointer.cpp
tests/auto/corelib/thread/qmutex/tst_qmutex.cpp
tests/auto/corelib/thread/qthreadonce/qthreadonce.cpp
tests/auto/corelib/thread/qthreadonce/tst_qthreadonce.cpp
tests/auto/corelib/thread/qthreadstorage/tst_qthreadstorage.cpp
tests/auto/corelib/tools/qcontiguouscache/tst_qcontiguouscache.cpp
tests/auto/corelib/tools/qsharedpointer/tst_qsharedpointer.cpp