Changeset 5804 for code/branches/core5/src/libraries/core
- Timestamp:
- Sep 26, 2009, 11:16:49 PM (15 years ago)
- Location:
- code/branches/core5/src/libraries/core
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/CorePrereqs.h
r5779 r5804 155 155 class ShellListener; 156 156 template <class T> 157 class SmartPtr; 158 template <class T> 157 159 class SubclassIdentifier; 158 160 class TclBind; … … 162 164 class TclThreadManager; 163 165 class Template; 166 template <class T> 167 class WeakPtr; 164 168 class WindowEventListener; 165 169 class XMLFile; -
code/branches/core5/src/libraries/core/OrxonoxClass.cc
r5791 r5804 52 52 OrxonoxClass::~OrxonoxClass() 53 53 { 54 // if (!this->requestedDestruction_) 55 // COUT(2) << "Warning: Destroyed object without destroy() (" << this->getIdentifier()->getName() << ")" << std::endl; 56 57 assert(this->referenceCount_ == 0); 58 54 59 delete this->metaList_; 55 60 … … 62 67 void OrxonoxClass::destroy() 63 68 { 64 if (this->referenceCount_ > 0) 65 this->requestedDestruction_ = true; 66 else 69 this->requestedDestruction_ = true; 70 if (this->referenceCount_ == 0) 67 71 delete this; 68 72 } -
code/branches/core5/src/libraries/core/OrxonoxClass.h
r5791 r5804 54 54 template <class T> 55 55 friend class ClassIdentifier; 56 57 template <class T> 58 friend class SmartPtr; 56 59 57 60 public:
Note: See TracChangeset
for help on using the changeset viewer.