OCC22144 NIS performance and memory usage update
[occt.git] / src / NIS / NIS_ObjectsIterator.cxx
index fbeec2b..b78527c 100755 (executable)
@@ -34,3 +34,16 @@ void NIS_ObjectsIterator::Next ()
     if (myIter.Value().IsNull() == Standard_False)
       break;
 }
+
+//=======================================================================
+//function : Value
+//purpose  : 
+//=======================================================================
+
+const Handle(NIS_InteractiveObject)& NIS_ObjectsIterator::Value() const
+{
+  if (More())
+    return myIter.Value();
+  static const Handle(NIS_InteractiveObject) aNullObj;
+  return aNullObj;
+}