Changeset 11054 for code/branches/cpp11_v3/src/orxonox/LevelInfo.cc
- Timestamp:
- Jan 10, 2016, 1:54:11 PM (8 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/orxonox/LevelInfo.cc
r9667 r11054 106 106 { 107 107 SubString substr = SubString(tags, ",", " "); // Split the string into tags. 108 const std::vector<std::string>& strings = substr.getAllStrings();109 for ( std::vector<std::string>::const_iterator it = strings.begin(); it != strings.end(); it++)110 this->addTag( *it, false);108 const std::vector<std::string>& tokens = substr.getAllStrings(); 109 for (const std::string& token : tokens) 110 this->addTag(token, false); 111 111 112 112 this->tagsUpdated(); … … 121 121 { 122 122 SubString substr = SubString(ships, ",", " "); // Split the string into tags. 123 const std::vector<std::string>& strings = substr.getAllStrings();124 for( std::vector<std::string>::const_iterator it = strings.begin(); it != strings.end(); it++)125 this->addStartingShip( *it, false);123 const std::vector<std::string>& tokens = substr.getAllStrings(); 124 for(const std::string& token : tokens) 125 this->addStartingShip(token, false); 126 126 127 127 this->startingshipsUpdated();
Note: See TracChangeset
for help on using the changeset viewer.