Use ConstIterator instead of Iterator in a few places

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6482 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2023-05-02 18:43:45 +00:00
parent 04d814ee31
commit 9679fa7006
2 changed files with 5 additions and 5 deletions

@ -95,7 +95,7 @@ namespace scene
{ {
if (IsVisible) if (IsVisible)
{ {
ISceneNodeList::Iterator it = Children.begin(); ISceneNodeList::ConstIterator it = Children.begin();
for (; it != Children.end(); ++it) for (; it != Children.end(); ++it)
(*it)->OnRegisterSceneNode(); (*it)->OnRegisterSceneNode();
} }
@ -114,7 +114,7 @@ namespace scene
{ {
// animate this node with all animators // animate this node with all animators
ISceneNodeAnimatorList::Iterator ait = Animators.begin(); ISceneNodeAnimatorList::ConstIterator ait = Animators.begin();
while (ait != Animators.end()) while (ait != Animators.end())
{ {
// continue to the next node before calling animateNode() // continue to the next node before calling animateNode()
@ -133,7 +133,7 @@ namespace scene
// perform the post render process on all children // perform the post render process on all children
ISceneNodeList::Iterator it = Children.begin(); ISceneNodeList::ConstIterator it = Children.begin();
for (; it != Children.end(); ++it) for (; it != Children.end(); ++it)
(*it)->OnAnimate(timeMs); (*it)->OnAnimate(timeMs);
} }
@ -829,7 +829,7 @@ namespace scene
// clone children // clone children
ISceneNodeList::Iterator it = toCopyFrom->Children.begin(); ISceneNodeList::ConstIterator it = toCopyFrom->Children.begin();
for (; it != toCopyFrom->Children.end(); ++it) for (; it != toCopyFrom->Children.end(); ++it)
(*it)->clone(this, newManager); (*it)->clone(this, newManager);

@ -1,4 +1,4 @@
Tests finished. 72 tests of 72 passed. Tests finished. 72 tests of 72 passed.
Compiled as DEBUG 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