From 1d26155a03784ec326a8f3f3c266340c9f11dc6d Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 21 Nov 2000 00:30:31 +0000 Subject: [PATCH] allow traverse to work correctly when the node is deleted --- src/libCom/cxxTemplates/resourceLib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index d9fcf7c27..457566080 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -435,8 +435,8 @@ void resTable::traverse (pSetMFArg(pCB)) tsSLIter pItem ( pList->first () ); while ( pItem.valid () ) { T * p = & ( *pItem ); - (p->*pCB) (); pItem = pItem.itemAfter (); + (p->*pCB) (); } pList++; } @@ -455,8 +455,8 @@ void resTable::traverseConst (pSetMFArgConst(pCB)) const tsSLIterConst pItem ( pList->first () ); while ( pItem.valid () ) { const T * p = & ( *pItem ); - (p->*pCB) (); pItem = pItem.itemAfter (); + (p->*pCB) (); } pList++; }