freebsd-ports/games/pipenightdreams/files/patch-list.cpp
Eric Anholt 912a0e2310 Unbreak with new GCC by fixing bad C++ code.
PR:		77809
Submitted by:	self
Approved by:	maintainer timeout (2 months)
2005-04-23 21:06:40 +00:00

20 lines
496 B
C++

--- src/list.cpp.orig Sat Jan 1 14:45:36 2005
+++ src/list.cpp Sat Jan 1 14:47:10 2005
@@ -125,7 +125,7 @@
return (insert(indexOf(i), obj));
}
-List::Result List::remove(Index * index, bool del=false){
+List::Result List::remove(Index * index, bool del){
if (isEmpty()) return EmptyList;
if (!index) return NullIndex;
@@ -155,7 +155,7 @@
return Removed;
}
-void List::empty(bool del=true){
+void List::empty(bool del){
while (!isEmpty())
remove(getFirst(), del);
}