From: Bradley T. Hughes Date: Fri, 28 Oct 2011 18:10:32 +0000 (+0200) Subject: Tentatively keep operator=(const QAtomic* &other) X-Git-Tag: qt-v5.0.0-alpha1~2934 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=573d8b838bf51c2758e16fa98252c4acdf7874ff;p=profile%2Fivi%2Fqtbase.git Tentatively keep operator=(const QAtomic* &other) QAtomic* has a copy constructor, so it may make sense to allow assignment of one atomic variable to another. Change-Id: Ic754d13765080e2fcd13dc583940e354ad4404cd Reviewed-by: Friedemann Kleint Reviewed-by: Bradley T. Hughes Reviewed-by: Thiago Macieira --- diff --git a/src/corelib/thread/qatomic.h b/src/corelib/thread/qatomic.h index 14c328a..34b9011 100644 --- a/src/corelib/thread/qatomic.h +++ b/src/corelib/thread/qatomic.h @@ -85,7 +85,6 @@ public: return *this; } - Q_DECL_DEPRECATED inline QAtomicInt &operator=(const QAtomicInt &other) { this->store(other.load()); @@ -176,7 +175,6 @@ public: return *this; } - Q_DECL_DEPRECATED inline QAtomicPointer &operator=(const QAtomicPointer &other) { this->store(other.load());