diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-09-29 11:50:08 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-27 18:57:38 +0200 |
commit | 6476ac738ca029af95932f53b53f0705808eb80e (patch) | |
tree | d1884397040eb65d23a48a0e1a56dad3f476cf34 /src/widgets/kernel/qicon.cpp | |
parent | 434824aede28e8c36d6991aa218f89daf2cc22fa (diff) |
Replace implicit QAtomic* casts with explicit load()/store()
Change-Id: Ia7ef1a8e01001f203e409c710c977d6f4686342e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/kernel/qicon.cpp')
-rw-r--r-- | src/widgets/kernel/qicon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/kernel/qicon.cpp b/src/widgets/kernel/qicon.cpp index e1ba8d4306..de7544f09a 100644 --- a/src/widgets/kernel/qicon.cpp +++ b/src/widgets/kernel/qicon.cpp @@ -767,7 +767,7 @@ bool QIcon::isNull() const */ bool QIcon::isDetached() const { - return !d || d->ref == 1; + return !d || d->ref.load() == 1; } /*! \internal @@ -775,7 +775,7 @@ bool QIcon::isDetached() const void QIcon::detach() { if (d) { - if (d->ref != 1) { + if (d->ref.load() != 1) { QIconPrivate *x = new QIconPrivate; if (d->engine_version > 1) { QIconEngineV2 *engine = static_cast<QIconEngineV2 *>(d->engine); |