From: fred Date: Thu, 9 Jan 1997 11:09:11 +0000 (+0000) Subject: flower-1.0.19 X-Git-Tag: release/1.5.59~6430 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=bfb9e11213ec40f43d0891ebda13d48fd5983edb;p=lilypond.git flower-1.0.19 --- diff --git a/flower/list.tcc b/flower/list.tcc index 55e1e20507..37ded81bbe 100644 --- a/flower/list.tcc +++ b/flower/list.tcc @@ -38,12 +38,9 @@ List::OK() const template List::~List() { - Cursor next(*this); - for ( Cursor c( *this ); c.ok(); c = next ) { - next = c; - next++; - remove( c ); - } + Cursor c(*this); + while (c.ok()) + c.del(); } template