Tentatively keep operator=(const QAtomic* &other)
authorBradley T. Hughes <bradley.hughes@nokia.com>
Fri, 28 Oct 2011 18:10:32 +0000 (20:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 Nov 2011 13:39:55 +0000 (14:39 +0100)
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 <Friedemann.Kleint@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/thread/qatomic.h

index 14c328a..34b9011 100644 (file)
@@ -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<T> &operator=(const QAtomicPointer<T> &other)
     {
         this->store(other.load());