]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.19
authorfred <fred>
Thu, 9 Jan 1997 11:09:11 +0000 (11:09 +0000)
committerfred <fred>
Thu, 9 Jan 1997 11:09:11 +0000 (11:09 +0000)
flower/list.tcc

index 55e1e205072e4547ce1a1a36e01efa622c3238f9..37ded81bbe83ae82ccc762823613dca7726ed3be 100644 (file)
@@ -38,12 +38,9 @@ List<T>::OK() const
 template<class T>
 List<T>::~List()
 {
-    Cursor<T> next(*this);
-    for ( Cursor<T> c( *this ); c.ok(); c = next ) {
-       next = c;
-       next++;
-       remove( c );
-    }
+    Cursor<T> c(*this);
+    while (c.ok())
+       c.del();
 }
 
 template<class T>