Changeset 10920 for code/branches/cpp11_v2/src/libraries/core/class
- Timestamp:
- Dec 6, 2015, 2:51:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/class/Identifier.h
r10919 r10920 415 415 void ClassIdentifier<T>::destroyObjects(Listable*) 416 416 { 417 ObjectListBase* objectList = Context::getRootContext()->getObjectList(this); 418 ObjectListElement<T>* begin = static_cast<ObjectListElement<T>*>(objectList->begin()); 419 ObjectListElement<T>* end = static_cast<ObjectListElement<T>*>(objectList->end()); 420 for (typename ObjectList<T>::iterator it = begin; it != end; ) 417 ObjectList<T> list(Context::getRootContext()->getObjectList(this)); 418 for (typename ObjectList<T>::iterator it = list.begin(); it != list.end(); ) 421 419 this->destroyObject(*(it++)); 422 420 }
Note: See TracChangeset
for help on using the changeset viewer.