Changeset 10821 for code/branches/cpp11_v2/src/modules/overlays/stats
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/overlays/stats/Scoreboard.cc
r9667 r10821 60 60 SUPER(Scoreboard, changedVisibility); 61 61 62 for ( unsigned int i = 0; i < this->lines_.size(); ++i)63 this->lines_[i]->changedVisibility();62 for (auto & elem : this->lines_) 63 elem->changedVisibility(); 64 64 } 65 65 … … 94 94 95 95 unsigned int index = 0; 96 for ( std::map<PlayerInfo*, Player>::const_iterator it = playerList.begin(); it != playerList.end(); ++it)96 for (const auto & elem : playerList) 97 97 { 98 this->lines_[index]->setPlayerName(multi_cast<std::string>( it->first->getName()));99 this->lines_[index]->setScore(multi_cast<std::string>( it->second.frags_));100 this->lines_[index]->setDeaths(multi_cast<std::string>( it->second.killed_));98 this->lines_[index]->setPlayerName(multi_cast<std::string>(elem.first->getName())); 99 this->lines_[index]->setScore(multi_cast<std::string>(elem.second.frags_)); 100 this->lines_[index]->setDeaths(multi_cast<std::string>(elem.second.killed_)); 101 101 index++; 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.