aboutsummaryrefslogtreecommitdiffstats
path: root/games/brainparty
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-09-07 02:51:16 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-09-07 02:51:16 +0800
commit3d29a25baf780080a4f34b8c519f77a813db69b9 (patch)
tree339634d4f4d5457bf15a4eeb3ca7acb44efcaf21 /games/brainparty
parent201b2be2401860f580c826c75b53896ae2121c39 (diff)
downloadfreebsd-ports-gnome-3d29a25baf780080a4f34b8c519f77a813db69b9.tar.gz
freebsd-ports-gnome-3d29a25baf780080a4f34b8c519f77a813db69b9.tar.zst
freebsd-ports-gnome-3d29a25baf780080a4f34b8c519f77a813db69b9.zip
- Fix build with clang
Diffstat (limited to 'games/brainparty')
-rw-r--r--games/brainparty/files/patch-BPList.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/brainparty/files/patch-BPList.h b/games/brainparty/files/patch-BPList.h
new file mode 100644
index 000000000000..20da90d97ac8
--- /dev/null
+++ b/games/brainparty/files/patch-BPList.h
@@ -0,0 +1,20 @@
+--- BPList.h.orig 2010-03-02 16:29:45.000000000 +0300
++++ BPList.h 2013-09-06 22:05:04.125227873 +0400
+@@ -138,7 +138,7 @@
+ ~BPPList();
+ void Add(T item);
+ bool Contains(T item);
+- void Clear(bool safe_delete);
++ void Clear(bool safe_delete = true);
+ int IndexOf(T item);
+ void Insert(int pos, T item);
+ void Remove(T item);
+@@ -171,7 +171,7 @@
+ }
+
+ template <class T>
+-void BPPList<T>::Clear(bool safe_delete = true) {
++void BPPList<T>::Clear(bool safe_delete) {
+ if (safe_delete) {
+ for (int i = data.size() - 1; i >= 0; --i) {
+ T item = data[i];