From 53804ed9d8b0e232dbd1d769771a2cd0337e52aa Mon Sep 17 00:00:00 2001 From: adv Date: Mon, 11 Nov 2013 05:03:37 +0000 Subject: [PATCH] Minor change. --- src/HYDROData/HYDROData_Iterator.cxx | 7 ++++--- src/HYDROData/HYDROData_Iterator.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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 -- 2.39.2