diff options
author | joerg <joerg@pkgsrc.org> | 2012-12-25 21:06:31 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-12-25 21:06:31 +0000 |
commit | 7782a347f62eb80df4787b42d3d8df2fbf3beb88 (patch) | |
tree | 617366e1f27b33b00a028d65b7d63221e39335fe /multimedia/kmplayer | |
parent | 9b29865ea5ac93c1884b27174d055d6037e71a14 (diff) | |
download | pkgsrc-7782a347f62eb80df4787b42d3d8df2fbf3beb88.tar.gz |
Fix syntax of WeakPtr class.
Diffstat (limited to 'multimedia/kmplayer')
-rw-r--r-- | multimedia/kmplayer/distinfo | 3 | ||||
-rw-r--r-- | multimedia/kmplayer/patches/patch-src_kmplayershared.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/multimedia/kmplayer/distinfo b/multimedia/kmplayer/distinfo index 21adcd23a20..a15c95ed856 100644 --- a/multimedia/kmplayer/distinfo +++ b/multimedia/kmplayer/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.22 2012/11/23 20:28:03 markd Exp $ +$NetBSD: distinfo,v 1.23 2012/12/25 21:06:31 joerg Exp $ SHA1 (kmplayer-0.11.3d.tar.bz2) = f43651d4252cf6d878b5b014c1e5e9b18b2e31c4 RMD160 (kmplayer-0.11.3d.tar.bz2) = 39cf21c28c176697632d60b8f2993e78a9e3dd0f Size (kmplayer-0.11.3d.tar.bz2) = 573173 bytes SHA1 (patch-aa) = 85d6f4f17a2c8afff505298f62b3105979a9e9f1 SHA1 (patch-ab) = 975524f4ef0163d47c452f16ab98016acebead09 +SHA1 (patch-src_kmplayershared.h) = b314dc90f44fc5154dcfcb4fa889008d78b59980 diff --git a/multimedia/kmplayer/patches/patch-src_kmplayershared.h b/multimedia/kmplayer/patches/patch-src_kmplayershared.h new file mode 100644 index 00000000000..9e60a6cf46c --- /dev/null +++ b/multimedia/kmplayer/patches/patch-src_kmplayershared.h @@ -0,0 +1,15 @@ +$NetBSD: patch-src_kmplayershared.h,v 1.1 2012/12/25 21:06:31 joerg Exp $ + +--- src/kmplayershared.h.orig 2012-12-25 18:21:29.000000000 +0000 ++++ src/kmplayershared.h +@@ -214,8 +214,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; } |