From bfb9e11213ec40f43d0891ebda13d48fd5983edb Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 9 Jan 1997 11:09:11 +0000 Subject: [PATCH] flower-1.0.19 --- flower/list.tcc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 -- 2.39.5