diff --git a/src/libCom/cxxTemplates/tsDLList.h b/src/libCom/cxxTemplates/tsDLList.h index 92fb4d4f5..8bb720ef7 100644 --- a/src/libCom/cxxTemplates/tsDLList.h +++ b/src/libCom/cxxTemplates/tsDLList.h @@ -58,7 +58,7 @@ public: void add ( T & item ); // add item to end of list void add ( tsDLList & addList ); // add to end of list - addList left empty void push ( T & item ); // add item to beginning of list - void push ( tsDLList & pushList ); // add to beg of list - addList left empty + void push ( tsDLList & pushList ); // add to beg of list - pushList left empty void remove ( T & item ); // remove item from list void removeAll ( tsDLList & destination ); T * get (); // removes first item on list @@ -387,8 +387,8 @@ inline void tsDLList::insertBefore (T &item, T &itemAfter) // // tsDLList::push () // -// adds addList to the end of the list -// (and removes all items from addList) +// adds pushList to the beginning of the list +// (and removes all items from pushList) // template inline void tsDLList::push ( tsDLList & pushList ) @@ -396,16 +396,16 @@ inline void tsDLList::push ( tsDLList & pushList ) if ( pushList.itemCount != 0u ) { if ( this->itemCount ) { tsDLNode * pFirstNode = this->pFirst; - tsDLNode * pAddListLastNode = addList.pLast; - pFirstNode->pPrev = addList.pLast; + tsDLNode * pAddListLastNode = pushList.pLast; + pFirstNode->pPrev = pushList.pLast; pAddListLastNode->pNext = this->pFirst; } else { - this->pLast = addList.pLast; + this->pLast = pushList.pLast; } this->pFirst = pushList.pFirst; - this->itemCount += addList.itemCount; - addList.clear(); + this->itemCount += pushList.itemCount; + pushList.clear(); } }