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/questsystem/QuestManager.cc

    r10916 r10917  
    235235    {
    236236        int numQuests = 0;
    237         for(auto& mapEntry : this->questMap_)
     237        for(const auto& mapEntry : this->questMap_)
    238238        {
    239239            if(mapEntry.second->getParentQuest() == nullptr && !mapEntry.second->isInactive(player))
     
    255255    Quest* QuestManager::getRootQuest(PlayerInfo* player, int index)
    256256    {
    257         for(auto& mapEntry : this->questMap_)
     257        for(const auto& mapEntry : this->questMap_)
    258258        {
    259259            if(mapEntry.second->getParentQuest() == nullptr && !mapEntry.second->isInactive(player) && index-- == 0)
Note: See TracChangeset for help on using the changeset viewer.