diff --git a/src/SceneGraph/AbstractGroupedFeature.h b/src/SceneGraph/AbstractGroupedFeature.h index a60ba6c55..962f877e6 100644 --- a/src/SceneGraph/AbstractGroupedFeature.h +++ b/src/SceneGraph/AbstractGroupedFeature.h @@ -140,9 +140,9 @@ template 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; } } diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index dec18a843..e8c62022b 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -239,10 +239,10 @@ template std::vector 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 */