Changeset 7849 for code/trunk/src/libraries/core/OrxonoxClass.cc
- Timestamp:
- Feb 10, 2011, 9:52:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/OrxonoxClass.cc
r7401 r7849 37 37 #include "MetaObjectList.h" 38 38 #include "Identifier.h" 39 #include "WeakPtr.h"40 39 41 40 namespace orxonox … … 56 55 57 56 /** 58 @brief Destructor: Removes the object from the object-lists, notifies all @ref WeakPtr "weak pointers"that this object is being deleted.57 @brief Destructor: Removes the object from the object-lists, notifies all DestructionListener (for example @ref WeakPtr "weak pointers") that this object is being deleted. 59 58 */ 60 59 OrxonoxClass::~OrxonoxClass() … … 71 70 delete this->parents_; 72 71 73 // reset all weak pointers pointing to this object74 for (std::set< WeakPtr<OrxonoxClass>*>::iterator it = this->weakPointers_.begin(); it != this->weakPointers_.end(); )72 // notify all destruction listeners 73 for (std::set<DestructionListener*>::iterator it = this->destructionListeners_.begin(); it != this->destructionListeners_.end(); ) 75 74 (*(it++))->objectDeleted(); 76 75 }
Note: See TracChangeset
for help on using the changeset viewer.