Changeset 10917 for code/branches/cpp11_v2/src/modules
- Timestamp:
- Dec 2, 2015, 11:32:08 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceController.cc
r10916 r10917 161 161 162 162 std::vector<RaceCheckPoint*> returnVec; 163 for ( auto& mapEntry : zaehler)163 for (const auto& mapEntry : zaehler) 164 164 { 165 165 if (mapEntry.second == maxWays) -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceManager.cc
r10916 r10917 77 77 } 78 78 79 for ( auto& mapEntry : players_)79 for (const auto& mapEntry : players_) 80 80 { 81 81 -
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4Dgame.cc
r10916 r10917 155 155 { 156 156 // first spawn human players to assign always the left bat to the player in singleplayer 157 for ( auto& mapEntry : this->players_)157 for (const auto& mapEntry : this->players_) 158 158 if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 159 159 this->spawnPlayer(mapEntry.first); 160 160 // now spawn bots 161 for ( auto& mapEntry : this->players_)161 for (const auto& mapEntry : this->players_) 162 162 if (!mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 163 163 this->spawnPlayer(mapEntry.first); -
code/branches/cpp11_v2/src/modules/notifications/NotificationManager.cc
r10916 r10917 69 69 { 70 70 // Destroys all Notifications. 71 for( auto& mapEntry : this->allNotificationsList_)71 for(const auto& mapEntry : this->allNotificationsList_) 72 72 mapEntry.second->destroy(); 73 73 this->allNotificationsList_.clear(); … … 152 152 bool executed = false; 153 153 // Clear all NotificationQueues that have the input sender as target. 154 for( auto& mapEntry : this->queues_) // Iterate through all NotificationQueues.154 for(const auto& mapEntry : this->queues_) // Iterate through all NotificationQueues. 155 155 { 156 156 const std::set<std::string>& set = mapEntry.second->getTargetsSet(); … … 187 187 188 188 // Insert the Notification in all NotificationQueues that have its sender as target. 189 for( auto& mapEntry : this->queues_) // Iterate through all NotificationQueues.189 for(const auto& mapEntry : this->queues_) // Iterate through all NotificationQueues. 190 190 { 191 191 const std::set<std::string>& set = mapEntry.second->getTargetsSet(); … … 345 345 346 346 // Iterate through all Notifications to determine whether any of them should belong to the newly registered NotificationQueue. 347 for( auto& mapEntry : this->allNotificationsList_)347 for(const auto& mapEntry : this->allNotificationsList_) 348 348 { 349 349 if(!bAll && set.find(mapEntry.second->getSender()) != set.end()) // Checks whether the listener has the sender of the current Notification as target. -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueue.cc
r10916 r10917 206 206 { 207 207 // Add all Notifications that have been created after this NotificationQueue was created. 208 for( auto& mapEntry : *notifications)208 for(const auto& mapEntry : *notifications) 209 209 { 210 210 if(mapEntry.first >= this->creationTime_) -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.cc
r10916 r10917 131 131 } 132 132 this->fontName_ = font; 133 for ( auto& mapEntry : this->activeObjectList_)133 for (const auto& mapEntry : this->activeObjectList_) 134 134 { 135 135 if (mapEntry.second.text_ != nullptr) … … 151 151 } 152 152 this->textSize_ = size; 153 for ( auto& mapEntry : this->activeObjectList_)153 for (const auto& mapEntry : this->activeObjectList_) 154 154 { 155 155 if (mapEntry.second.text_) … … 531 531 float yScale = this->getActualSize().y; 532 532 533 for ( auto& mapEntry : this->activeObjectList_)533 for (const auto& mapEntry : this->activeObjectList_) 534 534 { 535 535 if (mapEntry.second.health_ != nullptr) -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDRadar.cc
r10916 r10917 92 92 Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->map3DBack_); 93 93 94 for ( auto& mapEntry : this->radarObjects_)94 for (const auto& mapEntry : this->radarObjects_) 95 95 { 96 96 Ogre::OverlayManager::getSingleton().destroyOverlayElement(mapEntry.second); -
code/branches/cpp11_v2/src/modules/pickup/PickupManager.cc
r10916 r10917 91 91 92 92 // Destroying all the PickupInventoryContainers that are still there. 93 for( auto& mapEntry : this->pickupInventoryContainers_)93 for(const auto& mapEntry : this->pickupInventoryContainers_) 94 94 delete mapEntry.second; 95 95 this->pickupInventoryContainers_.clear(); -
code/branches/cpp11_v2/src/modules/pong/Pong.cc
r10916 r10917 211 211 { 212 212 // first spawn human players to assign always the left bat to the player in singleplayer 213 for ( auto& mapEntry : this->players_)213 for (const auto& mapEntry : this->players_) 214 214 if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 215 215 this->spawnPlayer(mapEntry.first); 216 216 // now spawn bots 217 for ( auto& mapEntry : this->players_)217 for (const auto& mapEntry : this->players_) 218 218 if (!mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 219 219 this->spawnPlayer(mapEntry.first); -
code/branches/cpp11_v2/src/modules/questsystem/QuestManager.cc
r10916 r10917 235 235 { 236 236 int numQuests = 0; 237 for( auto& mapEntry : this->questMap_)237 for(const auto& mapEntry : this->questMap_) 238 238 { 239 239 if(mapEntry.second->getParentQuest() == nullptr && !mapEntry.second->isInactive(player)) … … 255 255 Quest* QuestManager::getRootQuest(PlayerInfo* player, int index) 256 256 { 257 for( auto& mapEntry : this->questMap_)257 for(const auto& mapEntry : this->questMap_) 258 258 { 259 259 if(mapEntry.second->getParentQuest() == nullptr && !mapEntry.second->isInactive(player) && index-- == 0) -
code/branches/cpp11_v2/src/modules/tetris/Tetris.cc
r10916 r10917 341 341 { 342 342 // Spawn a human player. 343 for ( auto& mapEntry : this->players_)343 for (const auto& mapEntry : this->players_) 344 344 if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 345 345 this->spawnPlayer(mapEntry.first);
Note: See TracChangeset
for help on using the changeset viewer.