diff options
author | Michele Calgaro <[email protected]> | 2021-07-27 18:12:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-07-27 18:12:43 +0900 |
commit | 517c3557cc2b55788d38378036a241bffe2f3df4 (patch) | |
tree | 3fa1cd12c289fc925108ac1db07af5f40727cbd2 | |
parent | dcbbebef63d91bb2408cb76d50f8b7a7d8d568cd (diff) | |
download | kmplayer-517c3557cc2b55788d38378036a241bffe2f3df4.tar.gz kmplayer-517c3557cc2b55788d38378036a241bffe2f3df4.zip |
Fixed FTBFS in clang caused by wrong access to class members.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit bc553efe8f5c729dbf6289de189402193a614e10)
-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; } |