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 <Friedemann.Kleint@nokia.com> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
24f845dd20
commit
573d8b838b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user