]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor change.
authoradv <adv@opencascade.com>
Mon, 11 Nov 2013 05:03:37 +0000 (05:03 +0000)
committeradv <adv@opencascade.com>
Mon, 11 Nov 2013 05:03:37 +0000 (05:03 +0000)
src/HYDROData/HYDROData_Iterator.cxx
src/HYDROData/HYDROData_Iterator.h

index 42585bfda1ae0f0c7af6a0a8e8ce7b0f7ee68d81..c446ad61d9267140dbe83a528a5177a70c214c01 100644 (file)
@@ -31,9 +31,10 @@ static TDF_Label GetLabelByKind(TDF_Label theRoot, ObjectKind theKind)
   return theRoot.FindChild(theKind);
 }
 
-HYDROData_Iterator::HYDROData_Iterator(Handle(HYDROData_Document) theDoc, ObjectKind theKind)
-  : myIter(GetLabelByKind(theDoc->LabelOfObjects(), theKind), 
-           TDataStd_Name::GetID(), theKind == KIND_UNKNOWN) // iterate all sub-objects for unknown kind
+HYDROData_Iterator::HYDROData_Iterator( const Handle(HYDROData_Document)& theDoc,
+                                        const ObjectKind                  theKind )
+: myIter( GetLabelByKind( theDoc->LabelOfObjects(), theKind ), 
+          TDataStd_Name::GetID(), theKind == KIND_UNKNOWN ) // iterate all sub-objects for unknown kind
 {
 }
 
index 824579792fc560282ada87287ca4282a9a3e7da0..4a9edcf40e810b6093ff0d9c564295559182b9d4 100644 (file)
@@ -21,8 +21,8 @@ public:
    * \param theDoc document to iterate
    * \param theKind kind of the iterated object, can be UNKNOWN: to iterate all objects
    */
-  HYDRODATA_EXPORT HYDROData_Iterator(Handle(HYDROData_Document) theDoc,
-                                      ObjectKind theKind = KIND_UNKNOWN);
+  HYDRODATA_EXPORT HYDROData_Iterator( const Handle(HYDROData_Document)& theDoc,
+                                       const ObjectKind theKind = KIND_UNKNOWN);
 
   /**
    * Iterates to the next object