Changeset 3553 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Mar 15, 2005, 12:14:12 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/util/list.h
r3534 r3553 101 101 template<class T> 102 102 tList<T>::~tList () 103 {} 103 { 104 this->currentEl = this->first; 105 while(this->currentEl != NULL) 106 { 107 listElement* le = this->currentEl->next; 108 //delete this->currentEl->curr; 109 delete this->currentEl; 110 this->currentEl = le; 111 } 112 this->first = NULL; 113 this->last = NULL; 114 this->size = 0; 115 } 116 104 117 105 118 template<class T> … … 152 165 { 153 166 listElement* le = this->currentEl->next; 154 delete this->currentEl->curr;167 //delete this->currentEl->curr; 155 168 delete this->currentEl; 156 169 this->currentEl = le;
Note: See TracChangeset
for help on using the changeset viewer.