Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2015, 5:35:59 PM (9 years ago)
Author:
landauf
Message:

renamed SmartPtr to StrongPtr (now we have weak and strong pointers)

File:
1 edited

Legend:

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

    r10419 r10555  
    6161
    6262    /**
    63         @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.
    64         Always call destroy() instead of using 'delete' directly, otherwise smart pointers won't work.
     63        @brief Deletes the object if no @ref orxonox::StrongPtr "strong pointers" point to this object. Otherwise schedules the object to be deleted as soon as possible.
     64        Always call destroy() instead of using 'delete' directly, otherwise strong pointers won't work.
    6565    */
    6666    void Destroyable::destroy()
     
    8181    void Destroyable::destroyLater()
    8282    {
    83         // register in DestroyLaterManager - this ensures that a smartPtr points to this object and keeps it alive for a while
     83        // register in DestroyLaterManager - this ensures that a strongPtr points to this object and keeps it alive for a while
    8484        DestroyLaterManager::getInstance().retain(this);
    8585
    86         // request destruction -> object will be deleted after all smartPtrs (including the one in DestroyLaterManager) were destroyed.
     86        // request destruction -> object will be deleted after all strongPtrs (including the one in DestroyLaterManager) were destroyed.
    8787        this->destroy();
    8888    }
Note: See TracChangeset for help on using the changeset viewer.