From: adv Date: Mon, 11 Nov 2013 05:03:37 +0000 (+0000) Subject: Minor change. X-Git-Tag: BR_hydro_v_0_3~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53804ed9d8b0e232dbd1d769771a2cd0337e52aa;p=modules%2Fhydro.git Minor change. --- diff --git a/src/HYDROData/HYDROData_Iterator.cxx b/src/HYDROData/HYDROData_Iterator.cxx index 42585bfd..c446ad61 100644 --- a/src/HYDROData/HYDROData_Iterator.cxx +++ b/src/HYDROData/HYDROData_Iterator.cxx @@ -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 { } diff --git a/src/HYDROData/HYDROData_Iterator.h b/src/HYDROData/HYDROData_Iterator.h index 82457979..4a9edcf4 100644 --- a/src/HYDROData/HYDROData_Iterator.h +++ b/src/HYDROData/HYDROData_Iterator.h @@ -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