diff options
author | Michele Calgaro <[email protected]> | 2021-07-27 18:12:22 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-07-27 18:12:22 +0900 |
commit | bc553efe8f5c729dbf6289de189402193a614e10 (patch) | |
tree | 3a49a0f1e831cb17a6d84f49c73b6f3eab541f92 /src | |
parent | ca9162597e232f79023a7f1cb223cb46879956ed (diff) | |
download | kmplayer-bc553efe8f5c729dbf6289de189402193a614e10.tar.gz kmplayer-bc553efe8f5c729dbf6289de189402193a614e10.zip |
Fixed FTBFS in clang caused by wrong access to class members.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src')
-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; } |