Fix detach on bool check of QSharedDataPointer
We have a conversion to T* which would be triggered for a non negated bool check. Pick-to: 5.15 Change-Id: I543c66de6b4da64a3a63ee9a438fab6adcc58052 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b83225fcc3
commit
182760e84d
@ -118,6 +118,7 @@ public:
|
||||
QSharedDataPointer(QSharedDataPointer &&o) noexcept : d(qExchange(o.d, nullptr)) {}
|
||||
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QSharedDataPointer)
|
||||
|
||||
inline operator bool () const noexcept { return d != nullptr; }
|
||||
inline bool operator!() const noexcept { return !d; }
|
||||
|
||||
inline void swap(QSharedDataPointer &other) noexcept
|
||||
|
Loading…
x
Reference in New Issue
Block a user