diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-11-02 13:49:59 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-03 04:34:25 +0100 |
commit | c13b8cc4721ca3ddbc7741061480c45c962baa5b (patch) | |
tree | 07c04f43c2a3726df52d32aee513793788919f35 /src/nfc/qnearfieldtarget.cpp | |
parent | 169d2c96eefca0abc112e9d1c6b92f56daa2915a (diff) |
Use QAtomicInt::load() instead of implicit int casting
The operator int() cast operator is deprecated and will be removed.
Change-Id: I0cce705303542dad0d96a8db5c26859a806f5965
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/nfc/qnearfieldtarget.cpp')
-rw-r--r-- | src/nfc/qnearfieldtarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nfc/qnearfieldtarget.cpp b/src/nfc/qnearfieldtarget.cpp index 27aa175e..b7c0a286 100644 --- a/src/nfc/qnearfieldtarget.cpp +++ b/src/nfc/qnearfieldtarget.cpp @@ -214,7 +214,7 @@ bool QNearFieldTarget::RequestId::isValid() const int QNearFieldTarget::RequestId::refCount() const { if (d) - return d->ref; + return d->ref.load(); return 0; } |