File fix-FTBFS-with-GCC-4.9.patch of Package brainparty
From: Markus Koschany <apo@gambaru.de>
Date: Mon, 5 May 2014 13:20:33 +0200
Subject: fix FTBFS with GCC 4.9
---
BPList.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/BPList.h b/BPList.h
index 5c986cb..28cc2bb 100644
--- a/BPList.h
+++ b/BPList.h
@@ -138,7 +138,7 @@ public:
~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 @@ bool BPPList<T>::Contains(T item) {
}
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];