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/libraries/core/config/ConfigFileSection.h

    r11068 r11070  
    161161            std::list<ConfigFileEntry*>& getEntries()
    162162                { return this->entries_; }
    163             /// Returns the begin-iterator of the list of entries in this section.
    164             std::list<ConfigFileEntry*>::const_iterator getEntriesBegin() const
    165                 { return this->entries_.begin(); }
    166             /// Returns the end-iterator of the list of entries in this section.
    167             std::list<ConfigFileEntry*>::const_iterator getEntriesEnd() const
    168                 { return this->entries_.end(); }
     163            const std::list<ConfigFileEntry*>& getEntries() const
     164                { return this->entries_; }
    169165
    170166            std::list<ConfigFileEntry*>::iterator getOrCreateEntryIterator(const std::string& name, const std::string& fallback, bool bString);
Note: See TracChangeset for help on using the changeset viewer.