From ffe38880e92127690291e8f75e858dedc79b3cef Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 20 Nov 2000 21:00:55 +0000 Subject: [PATCH] fixed const traverse --- src/libCom/cxxTemplates/resourceLib.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 3986491e5..d9fcf7c27 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -158,7 +158,7 @@ public: // no parameters that returns void // void traverse ( pSetMFArg(pCB) ); - void constTraverse ( pSetMFArgConst(pCB) ) const; + void traverseConst ( pSetMFArgConst(pCB) ) const; private: tsSLList *pTable; @@ -426,7 +426,7 @@ void resTable::show (unsigned level) const // resTable::traverse // template -void resTable::traverse (pSetMFArg(pCB)) const +void resTable::traverse (pSetMFArg(pCB)) { tsSLList *pList; @@ -443,18 +443,18 @@ void resTable::traverse (pSetMFArg(pCB)) const } // -// resTable::constTraverse +// resTable::traverseConst // template -void resTable::consTraverse (pSetMFArgConst(pCB)) const +void resTable::traverseConst (pSetMFArgConst(pCB)) const { - tsSLList *pList; + const tsSLList *pList; pList = this->pTable; while ( pList < &this->pTable[this->hashIdMask+1] ) { - tsSLIter pItem ( pList->first () ); + tsSLIterConst pItem ( pList->first () ); while ( pItem.valid () ) { - T * p = & ( *pItem ); + const T * p = & ( *pItem ); (p->*pCB) (); pItem = pItem.itemAfter (); }