Salome HOME
Correct some memory leaks
[modules/smesh.git] / src / SMESH / SMESH_MEFISTO_2D.hxx
index aa0f6931e8383b673f8de5d6c6842c5551d2d7b8..7727a86e01c83c319938f29d1860508254a0d6a3 100644 (file)
@@ -34,8 +34,8 @@
 #include "SMESH_LengthFromEdges.hxx"
 #include "Rn.h"
 
+class SMDS_MeshNode;
 #include <TopoDS_Face.hxx>
-
 #include <map>
 
 class SMESH_MEFISTO_2D:
@@ -59,7 +59,7 @@ public:
                  const TopoDS_Wire& W,
                  R2* uvslf, 
                  int& m,
-                 map<int,int>& mefistoToDS);
+                 map<int,const SMDS_MeshNode*>& mefistoToDS);
 
   void ComputeScaleOnFace(SMESH_Mesh& aMesh,
                          const TopoDS_Face& aFace,
@@ -69,7 +69,7 @@ public:
   void StoreResult (SMESH_Mesh& aMesh,
                    Z nbst, R2* uvst, Z nbt, Z* nust, 
                    const TopoDS_Face& F, bool faceIsForward,
-                   map<int,int>& mefistoToDS);
+                   map<int,const SMDS_MeshNode*>& mefistoToDS);
                                          
   ostream & SaveTo(ostream & save);
   istream & LoadFrom(istream & load);
@@ -79,8 +79,8 @@ public:
 protected:
   double _edgeLength;
   double _maxElementArea;
-  SMESH_MaxElementArea* _hypMaxElementArea;
-  SMESH_LengthFromEdges* _hypLengthFromEdges;
+  const SMESH_MaxElementArea* _hypMaxElementArea;
+  const SMESH_LengthFromEdges* _hypLengthFromEdges;
 };
 
 #endif