Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 24, 2013, 10:30:39 PM (11 years ago)
Author:
landauf
Message:

moved meta-object-list from Identifiable to Listable, a new base class for objects with objectlists (yep)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/class/Identifiable.cc

    r9567 r9572  
    4848        this->identifier_ = 0;
    4949        this->parents_ = 0;
    50         this->metaList_ = new MetaObjectList();
    5150        // Optimisation
    5251        this->objectPointers_.reserve(6);
     
    5857    Identifiable::~Identifiable()
    5958    {
    60 //        if (!this->requestedDestruction_)
    61 //            orxout(internal_warning) << "Destroyed object without destroy() (" << this->getIdentifier()->getName() << ')' << endl;
    62 
    63         this->unregisterObject();
    64 
    6559        // parents_ exists only if isCreatingHierarchy() of the associated Identifier returned true while creating the class
    6660        if (this->parents_)
    6761            delete this->parents_;
    68     }
    69 
    70     /**
    71         @brief Removes this object from the object-lists.
    72     */
    73     void Identifiable::unregisterObject()
    74     {
    75         if (this->metaList_)
    76             delete this->metaList_;
    77         this->metaList_ = 0;
    7862    }
    7963
Note: See TracChangeset for help on using the changeset viewer.