diff options
Diffstat (limited to 'src/kmplayershared.h')
-rw-r--r-- | src/kmplayershared.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kmplayershared.h b/src/kmplayershared.h index 3066b4c..fbb24b1 100644 --- a/src/kmplayershared.h +++ b/src/kmplayershared.h @@ -186,8 +186,8 @@ struct WeakPtr { // operator bool () const { return data && !!data->ptr; } 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 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 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 SharedPtr<T> & s) const { return data != s.data; } operator T * () { return data ? data->ptr : 0L; } |