Salome HOME
Fix valgrind error: Mismatched free() / delete / delete []
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_FinderShapeOn.hxx
index 1117ed794e02171c16ee761e7e0c6543d0e8a9aa..4267cc2623c41b9d840a82dec1126a5adf71e365 100644 (file)
@@ -1,5 +1,5 @@
 
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -32,7 +32,6 @@
 #include <Standard_Macro.hxx>
 #include <Standard_Boolean.hxx>
 
-#include <Handle_Geom_Surface.hxx>
 #include <Geom_Surface.hxx>
 
 #include <TopAbs_ShapeEnum.hxx>
@@ -73,7 +72,7 @@ class GEOMAlgo_FinderShapeOn  : public GEOMAlgo_ShapeAlgo
     void SetState(const GEOMAlgo_State aSF) ;
 
   Standard_EXPORT
-    const Handle_Geom_Surface& Surface() const;
+    const Handle(Geom_Surface)& Surface() const;
 
   Standard_EXPORT
     TopAbs_ShapeEnum ShapeType() const;
@@ -113,7 +112,7 @@ protected:
     void FindVertices() ;
 
 
-  Handle_Geom_Surface mySurface;
+  Handle(Geom_Surface) mySurface;
   TopAbs_ShapeEnum myShapeType;
   GEOMAlgo_State myState;
   TopoDS_Shape myArg1;