mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-05 20:27:52 +08: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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user