From 70a4909ed0d07feb513b7bcad984e21da2776834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 8 Feb 2014 21:48:08 +0100 Subject: [PATCH] SceneGraph: don't do infinite recursion on deprecated Object::setClean(). Found thanks to (probably otherwise useless) GCC warning about usage of deprecated function . Clang didn't emit such warning, because even deprecated function should be able to call itself recursively. --- src/Magnum/SceneGraph/Object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/SceneGraph/Object.hpp b/src/Magnum/SceneGraph/Object.hpp index c2fe34830..9c2ea5c12 100644 --- a/src/Magnum/SceneGraph/Object.hpp +++ b/src/Magnum/SceneGraph/Object.hpp @@ -435,7 +435,7 @@ template void Object::setClean(std::vector references.push_back(*o); } - return setClean(objects); + return setClean(references); } #endif