Update of /cvsroot/plib/plib/src/util
In directory usw-pr-cvs1:/tmp/cvs-serv12607/util
Modified Files:
ulLinkedList.cxx
Log Message:
Fixed two typos; Minor changes
Index: ulLinkedList.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/util/ulLinkedList.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ulLinkedList.cxx 20 Mar 2002 15:48:23 -0000 1.1
+++ ulLinkedList.cxx 20 Mar 2002 16:53:51 -0000 1.2
@@ -73,7 +73,7 @@
curr = curr -> getNext () ;
}
- ulSetError ( UL_WARNING, "ulLInkedList::getNodePosition: No such node" ) ;
+ ulSetError ( UL_WARNING, "ulLinkedList::getNodePosition: No such node" ) ;
return 0 ;
}
@@ -101,13 +101,12 @@
if ( tail == NULL )
[...84 lines suppressed...]
+ ulListNode *curr = head ;
- while ( node != NULL )
+ while ( curr != NULL )
{
- ulListNode *next = node -> getNext () ;
+ ulListNode *next = curr -> getNext () ;
if ( destroyfn != NULL )
- (*destroyfn) ( node -> getData () ) ;
+ (*destroyfn) ( curr -> getData () ) ;
- delete node ;
+ delete curr ;
- node = next ;
+ curr = next ;
}
head = tail = NULL ;
|