Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2009, 10:05:38 PM (14 years ago)
Author:
rgrieder
Message:

Replaced (*it). with it→ where I could find it. Should increased code readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/ClassTreeMask.cc

    r6394 r6400  
    850850        // If there is a first subclass, move the object-iterator to the first object of this class. Else go to the end
    851851        if (this->subclassIterator_ != this->subclasses_.end())
    852             this->objectIterator_ = (*this->subclassIterator_).first->getObjects()->begin();
     852            this->objectIterator_ = this->subclassIterator_->first->getObjects()->begin();
    853853        else
    854854            this->objectIterator_ = ObjectList<BaseObject>::end();
    855855
    856856        // Check if the iterator points on a valid object. If not, go to the next object by calling ++
    857         if (!this->objectIterator_ || ((*this->subclassIterator_).second && !this->objectIterator_->isExactlyA((*this->subclassIterator_).first)))
     857        if (!this->objectIterator_ || (this->subclassIterator_->second && !this->objectIterator_->isExactlyA(this->subclassIterator_->first)))
    858858            this->operator++();
    859859
     
    882882                    // Check if there really is a next class. If yes, move the object-iterator to the first object
    883883                    if (this->subclassIterator_ != this->subclasses_.end())
    884                         this->objectIterator_ = (*this->subclassIterator_).first->getObjects()->begin();
     884                        this->objectIterator_ = this->subclassIterator_->first->getObjects()->begin();
    885885                    else
    886886                        return (*this);
     
    888888
    889889            // Repeat this until we reach a valid object or the end
    890             } while ((*this->subclassIterator_).second && !this->objectIterator_->isExactlyA((*this->subclassIterator_).first));
     890            } while (this->subclassIterator_->second && !this->objectIterator_->isExactlyA(this->subclassIterator_->first));
    891891        }
    892892        return (*this);
Note: See TracChangeset for help on using the changeset viewer.