Changeset 10916 for code/branches/cpp11_v2/src/modules/objects/Attacher.cc
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/objects/Attacher.cc
r10821 r10916 61 61 SUPER(Attacher, changedActivity); 62 62 63 for ( auto & elem: this->objects_)64 (elem)->setActive(this->isActive());63 for (WorldEntity* object : this->objects_) 64 object->setActive(this->isActive()); 65 65 } 66 66 … … 69 69 SUPER(Attacher, changedVisibility); 70 70 71 for ( auto & elem: this->objects_)72 (elem)->setVisible(this->isVisible());71 for (WorldEntity* object : this->objects_) 72 object->setVisible(this->isVisible()); 73 73 } 74 74 … … 83 83 { 84 84 unsigned int i = 0; 85 for ( const auto & elem: this->objects_)85 for (WorldEntity* object : this->objects_) 86 86 { 87 87 if (i == index) 88 return (elem);88 return object; 89 89 90 90 ++i;
Note: See TracChangeset
for help on using the changeset viewer.