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 (); }