Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 8:40:36 PM (8 years ago)
Author:
landauf
Message:

return collections directly instead of begin and end iterators.
this also fixes an issue in MultiStateEngine where two for-loops used begin() instead of end() in the loop condition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3/src/orxonox/worldentities/EffectContainer.h

    r11054 r11070  
    5454            WorldEntity* getEffect(unsigned int index) const;
    5555
    56             inline std::vector<WorldEntity*>::const_iterator getEffectsBegin()
    57                 { return this->effects_.begin(); }
    58             inline std::vector<WorldEntity*>::const_iterator getEffectsEnd()
    59                 { return this->effects_.end(); }
     56            inline const std::vector<WorldEntity*>& getEffects() const
     57                { return this->effects_; }
    6058
    6159            void updateCondition();
Note: See TracChangeset for help on using the changeset viewer.