Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2014, 1:29:33 PM (10 years ago)
Author:
landauf
Message:

no Thilo, we don't want to call preDestroy()
made documentation of destroy() and preDestroy() more explicit.

Location:
code/trunk/src/libraries/core/object
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/object/Destroyable.cc

    r9570 r9944  
    6161    /**
    6262        @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.
    6364    */
    6465    void Destroyable::destroy()
  • code/trunk/src/libraries/core/object/Destroyable.h

    r9570 r9944  
    6363
    6464        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.
    6667            virtual void preDestroy() {}
    6768
Note: See TracChangeset for help on using the changeset viewer.