]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.19
authorfred <fred>
Wed, 8 Jan 1997 21:18:53 +0000 (21:18 +0000)
committerfred <fred>
Wed, 8 Jan 1997 21:18:53 +0000 (21:18 +0000)
flower/plist.tcc

index 2581d24279d75b90447255bb10e7976787fb9b3f..69986035d2a018b330215ed14e793fdb897e6caa 100644 (file)
@@ -1,15 +1,14 @@
 #include "plist.hh"
 
-// not inlined since it assumes knowledge of destructor.
 template<class T>
-void
-IPointerList<T>::remove(PCursor<T> me )
+IPointerList<T>::~IPointerList()
 {
-    if ( me.ok() ) {
-       delete me.ptr();
-        List<void*>::remove(me); 
+    PCursor<T> c( *this );
+    while (c.ok()) {
+       c.del();
     }
 }
+
 template<class T>
 PCursor<T> 
 PointerList<T>::find(T what ) const