Changeset 9944 for code/trunk/src/libraries/core
- Timestamp:
- Jan 3, 2014, 1:29:33 PM (11 years ago)
- Location:
- code/trunk/src/libraries/core/object
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/object/Destroyable.cc
r9570 r9944 61 61 /** 62 62 @brief Deletes the object if no @ref orxonox::SmartPtr "smart pointers" point to this object. Otherwise schedules the object to be deleted as soon as possible. 63 Always call destroy() instead of using 'delete' directly, otherwise smart pointers won't work. 63 64 */ 64 65 void Destroyable::destroy() -
code/trunk/src/libraries/core/object/Destroyable.h
r9570 r9944 63 63 64 64 protected: 65 /// This virtual function is called if destroy() is called and no SmartPtr points to this object. Used in some cases to create a new SmartPtr to prevent destruction. 65 /// This virtual function is called if destroy() is called and no SmartPtr points to this object. Used in some cases to create a new SmartPtr to 66 /// prevent destruction. Don't call this function directly - use destroy() instead. 66 67 virtual void preDestroy() {} 67 68
Note: See TracChangeset
for help on using the changeset viewer.