Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2009, 10:05:38 PM (15 years ago)
Author:
rgrieder
Message:

Replaced (*it). with it→ where I could find it. Should increased code readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.cc

    r6394 r6400  
    311311        std::map<std::string, OrxonoxOverlay*>::const_iterator it = overlays_s.find(name);
    312312        if (it != overlays_s.end())
    313             (*it).second->scale(Vector2(scale, scale));
     313            it->second->scale(Vector2(scale, scale));
    314314    }
    315315
     
    326326        if (it != overlays_s.end())
    327327        {
    328             OrxonoxOverlay* overlay= (*it).second;
     328            OrxonoxOverlay* overlay= it->second;
    329329            if(overlay->isVisible())
    330330                overlay->hide();
     
    345345        std::map<std::string, OrxonoxOverlay*>::const_iterator it = overlays_s.find(name);
    346346        if (it != overlays_s.end())
    347             (*it).second->scroll(scroll);
     347            it->second->scroll(scroll);
    348348    }
    349349
     
    359359        std::map<std::string, OrxonoxOverlay*>::const_iterator it = overlays_s.find(name);
    360360        if (it != overlays_s.end())
    361             (*it).second->rotate(angle);
     361            it->second->rotate(angle);
    362362    }
    363363
Note: See TracChangeset for help on using the changeset viewer.