Changeset 10918 for code/branches/cpp11_v2/src/libraries/core/Game.cc
- Timestamp:
- Dec 5, 2015, 7:10:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/Game.cc
r10916 r10918 464 464 while (pos < str.size() && str[pos] != ' ') 465 465 ++pos; 466 stateStrings. push_back(std::make_pair(str.substr(startPos, pos - startPos), indentation));466 stateStrings.emplace_back(str.substr(startPos, pos - startPos), indentation); 467 467 } 468 468 if (stateStrings.empty()) 469 469 ThrowException(GameState, "Emtpy GameState hierarchy provided, terminating."); 470 470 // Add element with large identation to detect the last with just an iterator 471 stateStrings. push_back(std::make_pair(std::string(), -1));471 stateStrings.emplace_back(std::string(), -1); 472 472 473 473 // Parse elements recursively
Note: See TracChangeset
for help on using the changeset viewer.