allow traverse to work correctly when the node is deleted

This commit is contained in:
Jeff Hill
2000-11-21 00:30:31 +00:00
parent 8b452face6
commit 1d26155a03
+2 -2
View File
@@ -435,8 +435,8 @@ void resTable<T,ID>::traverse (pSetMFArg(pCB))
tsSLIter<T> pItem ( pList->first () );
while ( pItem.valid () ) {
T * p = & ( *pItem );
(p->*pCB) ();
pItem = pItem.itemAfter ();
(p->*pCB) ();
}
pList++;
}
@@ -455,8 +455,8 @@ void resTable<T,ID>::traverseConst (pSetMFArgConst(pCB)) const
tsSLIterConst<T> pItem ( pList->first () );
while ( pItem.valid () ) {
const T * p = & ( *pItem );
(p->*pCB) ();
pItem = pItem.itemAfter ();
(p->*pCB) ();
}
pList++;
}