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/tetris/Tetris.cc

    r10916 r10917  
    341341    {
    342342        // Spawn a human player.
    343         for (auto& mapEntry : this->players_)
     343        for (const auto& mapEntry : this->players_)
    344344            if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_))
    345345                this->spawnPlayer(mapEntry.first);
Note: See TracChangeset for help on using the changeset viewer.