Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 15, 2015, 10:11:15 PM (9 years ago)
Author:
landauf
Message:

found a better solution to find identifiers that don't belong to the parents of a newly created instance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/class/IdentifierManager.cc

    r10365 r10366  
    118118                if (it->second->hasFactory())
    119119                {
    120                     this->identifiersOfNewObject_.clear();
     120                    this->identifierTraceOfNewObject_.clear();
    121121                    Identifiable* temp = it->second->fabricate(&temporaryContext);
    122122                    if (temp->getIdentifier() != it->second)
    123123                        orxout(internal_error) << "Newly created object of type " << it->second->getName() << " has unexpected identifier. Did you forget to use RegisterObject(classname)?" << endl;
    124124
    125                     it->second->initializeParents(temp, this->identifiersOfNewObject_);
     125                    it->second->initializeParents(this->identifierTraceOfNewObject_[temp]);
    126126
    127127                    delete temp;
     
    209209    {
    210210        if (this->isCreatingHierarchy())
    211             this->identifiersOfNewObject_.insert(identifiable->getIdentifier());
     211            this->identifierTraceOfNewObject_[identifiable].insert(identifiable->getIdentifier());
    212212        else
    213213            orxout(internal_warning) << "createdObject() called outside of class hierarchy creation" << endl;
Note: See TracChangeset for help on using the changeset viewer.