Changeset 10821 for code/branches/cpp11_v2/src/libraries/core/Loader.cc
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/Loader.cc
r10777 r10821 165 165 std::ostringstream message; 166 166 message << "Possible sources of error:" << endl; 167 for ( std::vector<std::pair<std::string, size_t>>::iterator it = linesources.begin(); it != linesources.end(); ++it)167 for (auto & linesource : linesources) 168 168 { 169 message << it->first << ", Line " << it->second << endl;169 message << linesource.first << ", Line " << linesource.second << endl; 170 170 } 171 171 orxout(user_error, context::loader) << message.str() << endl; … … 261 261 { 262 262 bool expectedValue = true; 263 for ( std::map<size_t, bool>::iterator it = luaTags.begin(); it != luaTags.end(); ++it)264 { 265 if ( it->second == expectedValue)263 for (auto & luaTag : luaTags) 264 { 265 if (luaTag.second == expectedValue) 266 266 expectedValue = !expectedValue; 267 267 else
Note: See TracChangeset
for help on using the changeset viewer.