Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:32:08 PM (9 years ago)
Author:
landauf
Message:

made mapEntry const& wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/pong/Pong.cc

    r10916 r10917  
    211211    {
    212212        // 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_)
    214214            if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_))
    215215                this->spawnPlayer(mapEntry.first);
    216216        // now spawn bots
    217         for (auto& mapEntry : this->players_)
     217        for (const auto& mapEntry : this->players_)
    218218            if (!mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_))
    219219                this->spawnPlayer(mapEntry.first);
Note: See TracChangeset for help on using the changeset viewer.