Fixed FTBFS in clang caused by wrong access to class members.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bc553efe8f)
r14.0.x
Michele Calgaro 3 years ago
parent dcbbebef63
commit 517c3557cc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -186,8 +186,8 @@ struct WeakPtr {
// operator bool () const { return data && !!data->ptr; } // operator bool () const { return data && !!data->ptr; }
bool operator == (const WeakPtr<T> & w) const { return data == w.data; } bool operator == (const WeakPtr<T> & w) const { return data == w.data; }
bool operator == (const SharedPtr<T> & s) const { return data == s.data; } bool operator == (const SharedPtr<T> & s) const { return data == s.data; }
bool operator == (const T * t) const { return (!t && !data) || (data && data.ptr == t); } bool operator == (const T * t) const { return (!t && !data) || (data && data->ptr == t); }
bool operator == (T * t) const { return (!t && !data) || (data && data.ptr == t); } bool operator == (T * t) const { return (!t && !data) || (data && data->ptr == t); }
bool operator != (const WeakPtr<T> & w) const { return data != w.data; } bool operator != (const WeakPtr<T> & w) const { return data != w.data; }
bool operator != (const SharedPtr<T> & s) const { return data != s.data; } bool operator != (const SharedPtr<T> & s) const { return data != s.data; }
operator T * () { return data ? data->ptr : 0L; } operator T * () { return data ? data->ptr : 0L; }

Loading…
Cancel
Save