Salome HOME
Fix valgrind error: Mismatched free() / delete / delete []
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_FinderShapeOn2.hxx
index 4c2b13e7aa95cca1ca5097e831ea970434caea59..88dffc5e64ecc9b93ac04efe9807e5e9542eee98 100644 (file)
@@ -62,7 +62,7 @@ class GEOMAlgo_FinderShapeOn2  : public GEOMAlgo_ShapeAlgo
     void SetClsf(const Handle(GEOMAlgo_Clsf)& aClsf) ;
 
   Standard_EXPORT
-    const Handle_GEOMAlgo_Clsf& Clsf() const;
+    const Handle(GEOMAlgo_Clsf)& Clsf() const;
 
   Standard_EXPORT
     void SetShapeType(const TopAbs_ShapeEnum aST) ;
@@ -134,7 +134,7 @@ protected:
   GEOMAlgo_State myState;
   Standard_Integer myNbPntsMin;
   Standard_Integer myNbPntsMax;
-  Handle_GEOMAlgo_Clsf myClsf;
+  Handle(GEOMAlgo_Clsf) myClsf;
   TopTools_ListOfShape myLS;
   GEOMAlgo_IndexedDataMapOfShapeState myMSS;
 };