From db85a02752125d17f729e45919d58f7d50315744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 6 Apr 2013 21:52:57 +0200 Subject: [PATCH] GCC 4.5 compatibility: no range-based for. --- src/SceneGraph/Object.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index be80d9c4c..7282b2d5f 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -335,7 +335,8 @@ template void Object::setClean(std::vector } /* Cleanup all marks */ - for(auto o: objects) o->flags &= ~Flag::Visited; + for(auto it = objects.begin(); it != objects.end(); ++it) + (*it)->flags &= ~Flag::Visited; /* Compute absolute transformations */ Scene* scene = objects[0]->scene();