Browse Source

GCC 4.5 compatibility: no range-based for.

Vladimír Vondruš 14 years ago
parent
commit
63543400fd
  1. 6
      src/SceneGraph/AbstractGroupedFeature.h
  2. 8
      src/SceneGraph/Object.hpp

6
src/SceneGraph/AbstractGroupedFeature.h

@ -140,9 +140,9 @@ template<std::uint8_t dimensions, class Feature, class T = GLfloat> class Featur
* Deletes all features belogning to this group.
*/
inline virtual ~FeatureGroup() {
for(auto i: features) {
i->_group = nullptr;
delete i;
for(auto it = features.begin(); it != features.end(); ++it) {
(*it)->_group = nullptr;
delete *it;
}
}

8
src/SceneGraph/Object.hpp

@ -239,10 +239,10 @@ template<class Transformation> std::vector<typename Transformation::DataType> Ob
computeJointTransformation(jointObjects, jointTransformations, i, initialTransformation);
/* All visited marks are now cleaned, clean joint marks and counters */
for(auto i: jointObjects) {
CORRADE_INTERNAL_ASSERT(i->flags & Flag::Joint);
i->flags &= ~Flag::Joint;
i->counter = 0xFFFFu;
for(auto it = jointObjects.begin(); it != jointObjects.end(); ++it) {
CORRADE_INTERNAL_ASSERT((*it)->flags & Flag::Joint);
(*it)->flags &= ~Flag::Joint;
(*it)->counter = 0xFFFFu;
}
/* Shrink the array to contain only transformations of requested objects and return */

Loading…
Cancel
Save