]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor changes.
authoradv <adv@opencascade.com>
Thu, 9 Jan 2014 09:20:24 +0000 (09:20 +0000)
committeradv <adv@opencascade.com>
Thu, 9 Jan 2014 09:20:24 +0000 (09:20 +0000)
src/HYDROData/HYDROData_Entity.cxx
src/HYDROData/HYDROData_Entity.h
src/HYDROData/test_HYDROData_Image.cxx

index 512c0431b943a6cddad8339e4595dffa73d756e1..8153d3e909aaa791248fe3919de046a14bcb245f 100644 (file)
@@ -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();
index 1bd62a1b7483c53065ddf5e49227228b20c6d15b..9429b1720cf14598aab2f5befee74578e0986fcd 100644 (file)
@@ -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.
index 8e5d8ad8da4352714ffe0b83f1bbc0ce8679b0fc..c67e7aff5e16fa770e5678112c669eddd4fb6fc7 100644 (file)
@@ -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);