From 87a07b3f2289446d6b712cd4eb648338fb83d18d Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 8 Nov 2000 04:16:59 +0000 Subject: [PATCH] fixed SLL iterator performance --- src/libCom/cxxTemplates/resourceLib.h | 2 +- src/libCom/cxxTemplates/tsSLList.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index fdd84fb4c..010c478d7 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -447,7 +447,7 @@ void resTable::show (unsigned level) const pItem->show (level); } count++; - pItem = pItem->itemAfter (); + pItem = pItem.itemAfter (); } if ( count > 0u ) { X += count; diff --git a/src/libCom/cxxTemplates/tsSLList.h b/src/libCom/cxxTemplates/tsSLList.h index 43ed31911..b1bf35f8a 100644 --- a/src/libCom/cxxTemplates/tsSLList.h +++ b/src/libCom/cxxTemplates/tsSLList.h @@ -263,7 +263,7 @@ inline void tsSLList < T > :: push ( T &item ) template inline T * tsSLList < T > :: first () const { - tsSLNode < T > *pThisNode = this; + const tsSLNode < T > *pThisNode = this; return pThisNode->pNext; } @@ -361,7 +361,7 @@ inline bool tsSLIterConst::valid () const // end of the list constant // template < class T > -inline static const tsSLIterConst tsSLIterConst::eol () +inline const tsSLIterConst tsSLIterConst::eol () { return 0; } @@ -450,7 +450,7 @@ inline bool tsSLIter::valid () const // end of the list constant // template < class T > -inline static const tsSLIter tsSLIter::eol () +inline const tsSLIter tsSLIter::eol () { return 0; }