diff --git a/include/ISceneNode.h b/include/ISceneNode.h index 4f18cc9..18c5bff 100644 --- a/include/ISceneNode.h +++ b/include/ISceneNode.h @@ -95,7 +95,7 @@ namespace scene { if (IsVisible) { - ISceneNodeList::Iterator it = Children.begin(); + ISceneNodeList::ConstIterator it = Children.begin(); for (; it != Children.end(); ++it) (*it)->OnRegisterSceneNode(); } @@ -114,7 +114,7 @@ namespace scene { // animate this node with all animators - ISceneNodeAnimatorList::Iterator ait = Animators.begin(); + ISceneNodeAnimatorList::ConstIterator ait = Animators.begin(); while (ait != Animators.end()) { // continue to the next node before calling animateNode() @@ -133,7 +133,7 @@ namespace scene // perform the post render process on all children - ISceneNodeList::Iterator it = Children.begin(); + ISceneNodeList::ConstIterator it = Children.begin(); for (; it != Children.end(); ++it) (*it)->OnAnimate(timeMs); } @@ -829,7 +829,7 @@ namespace scene // clone children - ISceneNodeList::Iterator it = toCopyFrom->Children.begin(); + ISceneNodeList::ConstIterator it = toCopyFrom->Children.begin(); for (; it != toCopyFrom->Children.end(); ++it) (*it)->clone(this, newManager); diff --git a/tests/tests-last-passed-at.txt b/tests/tests-last-passed-at.txt index a9358f5..05ac709 100644 --- a/tests/tests-last-passed-at.txt +++ b/tests/tests-last-passed-at.txt @@ -1,4 +1,4 @@ Tests finished. 72 tests of 72 passed. Compiled as DEBUG -Test suite pass at GMT Tue May 02 15:59:37 2023 +Test suite pass at GMT Tue May 02 18:39:02 2023