From: adv Date: Thu, 9 Jan 2014 09:20:24 +0000 (+0000) Subject: Minor changes. X-Git-Tag: BR_hydro_v_0_8~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e71e4c204a4941dccfa92b71792c72662f8d5b84;p=modules%2Fhydro.git Minor changes. --- diff --git a/src/HYDROData/HYDROData_Entity.cxx b/src/HYDROData/HYDROData_Entity.cxx index 512c0431..8153d3e9 100644 --- a/src/HYDROData/HYDROData_Entity.cxx +++ b/src/HYDROData/HYDROData_Entity.cxx @@ -119,7 +119,7 @@ HYDROData_Entity::~HYDROData_Entity() { } -void HYDROData_Entity::CopyTo(Handle_HYDROData_Entity theDestination) const +void HYDROData_Entity::CopyTo( const Handle(HYDROData_Entity)& theDestination ) const { TDF_CopyLabel aCopy(myLab, theDestination->Label()); aCopy.Perform(); diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 1bd62a1b..9429b172 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -151,17 +151,12 @@ public: */ HYDRODATA_EXPORT virtual bool CanRemove(); - /** - * Returns unique integer identifier of the object (may be used for ordering of objects) - */ - HYDRODATA_EXPORT inline int ID() const { return myLab.Tag(); } - /** * Copies all properties of this to the destinated object. * Objects must be the same type. * \param theDestination initialized object (from any document) - target of copying */ - HYDRODATA_EXPORT void CopyTo( Handle_HYDROData_Entity theDestination ) const; + HYDRODATA_EXPORT void CopyTo( const Handle(HYDROData_Entity)& theDestination ) const; /** * Returns the label of this object. diff --git a/src/HYDROData/test_HYDROData_Image.cxx b/src/HYDROData/test_HYDROData_Image.cxx index 8e5d8ad8..c67e7aff 100644 --- a/src/HYDROData/test_HYDROData_Image.cxx +++ b/src/HYDROData/test_HYDROData_Image.cxx @@ -73,9 +73,6 @@ void test_HYDROData_Image::testReferences() Handle(HYDROData_Image) anImage3 = Handle(HYDROData_Image)::DownCast(aDoc->CreateObject(KIND_IMAGE)); - CPPUNIT_ASSERT(anImage1->ID() != anImage2->ID()); - CPPUNIT_ASSERT(anImage2->ID() != anImage3->ID()); - // check initially there is no references CPPUNIT_ASSERT_EQUAL(anImage3->NbReferences(), 0);