Changeset 10918 for code/branches/cpp11_v2/src/modules
- Timestamp:
- Dec 5, 2015, 7:10:56 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/designtools/SkyboxGenerator.cc
r10765 r10918 82 82 this->faceCounter_ = 0; 83 83 84 this->names_. push_back("fr");85 this->names_. push_back("lf");86 this->names_. push_back("bk");87 this->names_. push_back("rt");88 this->names_. push_back("up");89 this->names_. push_back("dn");90 91 this->rotations_. push_back(std::pair<int, int>(90, 0));92 this->rotations_. push_back(std::pair<int, int>(90, 0));93 this->rotations_. push_back(std::pair<int, int>(90, 0));94 this->rotations_. push_back(std::pair<int, int>(90, 90));95 this->rotations_. push_back(std::pair<int, int>(0, 180));96 this->rotations_. push_back(std::pair<int, int>(0, 90));84 this->names_.emplace_back("fr"); 85 this->names_.emplace_back("lf"); 86 this->names_.emplace_back("bk"); 87 this->names_.emplace_back("rt"); 88 this->names_.emplace_back("up"); 89 this->names_.emplace_back("dn"); 90 91 this->rotations_.emplace_back(90, 0); 92 this->rotations_.emplace_back(90, 0); 93 this->rotations_.emplace_back(90, 0); 94 this->rotations_.emplace_back(90, 90); 95 this->rotations_.emplace_back(0, 180); 96 this->rotations_.emplace_back(0, 90); 97 97 } 98 98 -
code/branches/cpp11_v2/src/modules/objects/triggers/MultiTrigger.cc
r10916 r10918 265 265 else 266 266 { 267 this->stateQueue_. push_back(std::pair<float, MultiTriggerState*>(timeRemaining-dt, state));267 this->stateQueue_.emplace_back(timeRemaining-dt, state); 268 268 this->stateQueue_.pop_front(); 269 269 } … … 489 489 490 490 // Add it ot the state queue with the delay specified for the MultiTrigger. 491 this->stateQueue_. push_back(std::pair<float, MultiTriggerState*>(this->getDelay(), state));491 this->stateQueue_.emplace_back(this->getDelay(), state); 492 492 493 493 return true; -
code/branches/cpp11_v2/src/modules/pong/PongAI.cc
r10916 r10918 362 362 // Add a new Timer 363 363 Timer* timer = new Timer(delay, false, createExecutor(createFunctor(&PongAI::delayedMove, this))); 364 this->reactionTimers_. push_back(std::pair<Timer*, char>(timer, direction));364 this->reactionTimers_.emplace_back(timer, direction); 365 365 } 366 366 else
Note: See TracChangeset
for help on using the changeset viewer.