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/orxonox/collisionshapes/CompoundCollisionShape.cc

    r10916 r10917  
    6565        {
    6666            // Delete all children
    67             for (auto& mapEntry : this->attachedShapes_)
     67            for (const auto& mapEntry : this->attachedShapes_)
    6868            {
    6969                // make sure that the child doesn't want to detach itself --> speedup because of the missing update
     
    266266        std::vector<CollisionShape*> shapes;
    267267        // Iterate through all attached CollisionShapes and add them to the list of shapes.
    268         for(auto& mapEntry : this->attachedShapes_)
     268        for(const auto& mapEntry : this->attachedShapes_)
    269269            shapes.push_back(mapEntry.first);
    270270
Note: See TracChangeset for help on using the changeset viewer.