Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 27, 2013, 11:17:45 PM (11 years ago)
Author:
landauf
Message:

moved logic to remove an element from an ObjectListBase from MetaObjectList to ObjectListBase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/object/MetaObjectList.cc

    r9563 r9593  
    4848    MetaObjectListElement::~MetaObjectListElement()
    4949    {
    50         orxout(verbose, context::object_list) << "Removing Object from " << this->list_->getIdentifier()->getName() << "-list." << endl;
    51         this->list_->notifyIterators(this->element_->objectBase_);
    52 
    53         if (this->element_->next_)
    54             this->element_->next_->prev_ = this->element_->prev_;
    55         else
    56             this->list_->last_ = this->element_->prev_; // If there is no next_, we deleted the last object and have to update the last_ pointer of the list
    57 
    58         if (this->element_->prev_)
    59             this->element_->prev_->next_ = this->element_->next_;
    60         else
    61             this->list_->first_ = this->element_->next_; // If there is no prev_, we deleted the first object and have to update the first_ pointer of the list
    62 
     50        this->list_->removeElement(this->element_);
    6351        delete this->element_;
    6452    }
Note: See TracChangeset for help on using the changeset viewer.