fixed SLL iterator performance

This commit is contained in:
Jeff Hill
2000-11-08 04:16:59 +00:00
parent be993f0de6
commit 87a07b3f22
2 changed files with 4 additions and 4 deletions

View File

@@ -447,7 +447,7 @@ void resTable<T,ID>::show (unsigned level) const
pItem->show (level);
}
count++;
pItem = pItem->itemAfter ();
pItem = pItem.itemAfter ();
}
if ( count > 0u ) {
X += count;

View File

@@ -263,7 +263,7 @@ inline void tsSLList < T > :: push ( T &item )
template <class T>
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<T>::valid () const
// end of the list constant
//
template < class T >
inline static const tsSLIterConst<T> tsSLIterConst<T>::eol ()
inline const tsSLIterConst<T> tsSLIterConst<T>::eol ()
{
return 0;
}
@@ -450,7 +450,7 @@ inline bool tsSLIter<T>::valid () const
// end of the list constant
//
template < class T >
inline static const tsSLIter<T> tsSLIter<T>::eol ()
inline const tsSLIter<T> tsSLIter<T>::eol ()
{
return 0;
}