Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
}
inline QAtomicInt(const QAtomicInt &other) {
- int data = other.load();
- store(data);
+ store(other.load());
}
inline QAtomicInt &operator=(const QAtomicInt &other) {
- int data = other.load();
- store(data);
-
+ store(other.load());
return *this;
}
}
inline QAtomicPointer(const QAtomicPointer<T> &other) {
- T *data = other.load();
- store(data);
+ store(other.load());
}
inline QAtomicPointer<T> &operator=(const QAtomicPointer<T> &other) {
- T *data = other.load();
- store(data);
-
+ store(other.load());
return *this;
}