Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

made mapEntry const& wherever possible

Location:
code/branches/cpp11_v2/src/modules/overlays/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.cc

    r10916 r10917  
    131131        }
    132132        this->fontName_ = font;
    133         for (auto& mapEntry : this->activeObjectList_)
     133        for (const auto& mapEntry : this->activeObjectList_)
    134134        {
    135135            if (mapEntry.second.text_ != nullptr)
     
    151151        }
    152152        this->textSize_ = size;
    153         for (auto& mapEntry : this->activeObjectList_)
     153        for (const auto& mapEntry : this->activeObjectList_)
    154154        {
    155155            if (mapEntry.second.text_)
     
    531531        float yScale = this->getActualSize().y;
    532532
    533         for (auto& mapEntry : this->activeObjectList_)
     533        for (const auto& mapEntry : this->activeObjectList_)
    534534        {
    535535            if (mapEntry.second.health_ != nullptr)
  • code/branches/cpp11_v2/src/modules/overlays/hud/HUDRadar.cc

    r10916 r10917  
    9292            Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->map3DBack_);
    9393
    94             for (auto& mapEntry : this->radarObjects_)
     94            for (const auto& mapEntry : this->radarObjects_)
    9595            {
    9696                Ogre::OverlayManager::getSingleton().destroyOverlayElement(mapEntry.second);
Note: See TracChangeset for help on using the changeset viewer.