Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 8:40:36 PM (9 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/ConfigFile.cc

    r11054 r11070  
    238238            file << section->getFileEntry() << endl;
    239239
    240             for (std::list<ConfigFileEntry*>::const_iterator it_entries = section->getEntriesBegin(); it_entries != section->getEntriesEnd(); ++it_entries)
    241                 file << (*it_entries)->getFileEntry() << endl;
     240            for (ConfigFileEntry* entry : section->getEntries())
     241                file << entry->getFileEntry() << endl;
    242242
    243243            file << endl;
Note: See TracChangeset for help on using the changeset viewer.