Salome HOME
Modification function HashCode() for correct work of DataMap
authorskl <skl@opencascade.com>
Wed, 5 Oct 2005 13:27:49 +0000 (13:27 +0000)
committerskl <skl@opencascade.com>
Wed, 5 Oct 2005 13:27:49 +0000 (13:27 +0000)
src/SMESH/SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx

index 87382ddadb720c97a73e09b6b4a0611b9c25eeb3..b5ede17ea8c1ec3c2b9c21e89a4bd41773829b9c 100644 (file)
@@ -1,7 +1,7 @@
 // File:      SMESH_DataMapOfElemPtrSequenceOfElemPtr.hxx
 // Created:   26.09.05 17:41:10
 // Author:    Sergey KUUL
-// Copyright: Airbus Industries 2004
+// Copyright: Open CASCADE 2005
 
 
 #ifndef SMESH_DataMapOfElemPtrSequenceOfElemPtr_HeaderFile
@@ -14,7 +14,7 @@
 inline Standard_Integer HashCode(SMDS_MeshElementPtr theElem,
                                  const Standard_Integer theUpper)
 {
-  SMDS_MeshElement * anElem = (SMDS_MeshElement *) theElem;
+  void* anElem = (void*) theElem;
   return HashCode(anElem,theUpper);
 }