From a3fe65a59ad4c4af9a2b4f093ce8dafb54a8d458 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 8 Nov 2000 04:20:30 +0000 Subject: [PATCH] fixed SLL iterator performance --- src/libCom/cxxTemplates/resourceLib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 010c478d7..767392d08 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -480,7 +480,8 @@ void resTable::traverse (pSetMFArg(pCB)) const tsSLIter pItem ( pList->first () ); while ( pItem.valid () ) { - (pItem->*pCB) (); + T * p = & ( *pItem ); + (p->*pCB) (); pItem = pItem->itemAfter (); } pList++;