- Timestamp:
- Dec 14, 2009, 12:50:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/OrxonoxClass.h
r6121 r6348 135 135 { return const_cast<OrxonoxClass*>(this)->getDerivedPointer<T>(classID); } 136 136 137 protected: 138 virtual void preDestroy() {} 139 137 140 private: 138 141 /** @brief Increments the reference counter (for smart pointers). */ … … 141 144 /** @brief Decrements the reference counter (for smart pointers). */ 142 145 inline void decrementReferenceCount() 143 { --this->referenceCount_; if (this->referenceCount_ == 0 && this->requestedDestruction_) { delete this; } } 146 { 147 --this->referenceCount_; 148 if (this->referenceCount_ == 0 && this->requestedDestruction_) 149 this->destroy(); 150 } 144 151 145 152 /** @brief Register a weak pointer which points to this object. */
Note: See TracChangeset
for help on using the changeset viewer.