1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025397: Iteration on a tree of nodes is too slow

Added "const Handle(TDataStd_TreeNode)&" for the method TDataStd_ChildNodeIterator::Value().
This commit is contained in:
vro
2014-10-20 15:32:13 +04:00
committed by bugmaster
parent 28746337be
commit 09f5e48e01
2 changed files with 2 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ is
Value(me) returns TreeNode from TDataStd;
---C++: inline
---C++: return const &
---Purpose: Returns the current item; a null Step if there is
-- no one.

View File

@@ -28,7 +28,7 @@ inline Standard_Boolean TDataStd_ChildNodeIterator::More() const
//purpose :
//=======================================================================
inline Handle(TDataStd_TreeNode) TDataStd_ChildNodeIterator::Value() const
inline const Handle(TDataStd_TreeNode)& TDataStd_ChildNodeIterator::Value() const
{
return myNode;
}