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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 3 years ago
parent ca9162597e
commit bc553efe8f
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