Changeset 10821 for code/branches/cpp11_v2/src/orxonox/LevelInfo.cc
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/LevelInfo.cc
r9667 r10821 107 107 SubString substr = SubString(tags, ",", " "); // Split the string into tags. 108 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);109 for (const auto & strings_it : strings) 110 this->addTag(strings_it, false); 111 111 112 112 this->tagsUpdated(); … … 122 122 SubString substr = SubString(ships, ",", " "); // Split the string into tags. 123 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);124 for(const auto & strings_it : strings) 125 this->addStartingShip(strings_it, false); 126 126 127 127 this->startingshipsUpdated();
Note: See TracChangeset
for help on using the changeset viewer.