]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
change def hasher for indexed map
authorisn <isn@opencascade.com>
Tue, 11 Oct 2016 14:27:54 +0000 (17:27 +0300)
committerisn <isn@opencascade.com>
Tue, 11 Oct 2016 14:27:54 +0000 (17:27 +0300)
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_GeomTool.cxx
src/HYDROData/HYDROData_GeomTool.h

index 633e063a11bd09049454f202a3ff9c69738b5e2f..a66a02129daee1960f3e7f4d68b3ad060d2b623c 100644 (file)
@@ -1156,7 +1156,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var
   aSewing.Perform();
   TopoDS_Shape aSewedShape = aSewing.SewedShape();
 
-  NCollection_IndexedDataMap<TopoDS_Shape, QString> aFacesToNameModif;
+  NCollection_IndexedDataMap<TopoDS_Shape, QString, TopTools_ShapeMapHasher> aFacesToNameModif;
 
   for ( int i = 1; i <= aFacesToName.Extent(); i++ )
   {
index 8423f6d314083b7a514fdf993d29ea673841e2cb..45add50105550ee9dcc15ee24188078af6d6f599 100644 (file)
@@ -164,7 +164,7 @@ GEOM::GEOM_Object_ptr HYDROData_GeomTool::publishShapeInGEOM(
 GEOM::GEOM_Object_ptr HYDROData_GeomTool::ExplodeShapeInGEOMandPublish( GEOM::GEOM_Gen_var theGeomEngine, 
   SALOMEDS::Study_ptr theStudy, 
   const TopoDS_Shape& theShape,   
-  const NCollection_IndexedDataMap<TopoDS_Shape, QString>& aFacesToNameModif,  
+  const NCollection_IndexedDataMap<TopoDS_Shape, QString, TopTools_ShapeMapHasher>& aFacesToNameModif,  
   const QString& theName,
   QString& theGeomObjEntry)
 { 
index 2ffa63cffd7b3139e3b7ddae9b215969e4fd1c0b..ab84b701084a0bd8dd767aaf70280e039dcdcbcc 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "HYDROData.h"
 #include <NCollection_IndexedDataMap.hxx>
+#include <TopTools_ShapeMapHasher.hxx>
 
 #ifdef WIN32
   #pragma warning ( disable: 4251 )
@@ -117,7 +118,7 @@ public:
   static GEOM::GEOM_Object_ptr ExplodeShapeInGEOMandPublish( GEOM::GEOM_Gen_var theGeomEngine, 
                                                       SALOMEDS::Study_ptr theStudy, 
                                                       const TopoDS_Shape& theShape, 
-                                                      const NCollection_IndexedDataMap<TopoDS_Shape, QString>& aFacesToNameModif,
+                                                      const NCollection_IndexedDataMap<TopoDS_Shape, QString, TopTools_ShapeMapHasher>& aFacesToNameModif,
                                                       const QString& theName,
                                                       QString& theGeomObjEntry);