mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025622: CAST analysis: Avoid invocation of virtual Methods of the declared Class in a Constructor or Destructor
The Delete() methods have been deleted from the following classes: - Adaptor2d_Curve2d - Adaptor3d_Curve - Adaptor3d_Surface - AppBlend_Approx - AppCont_Function - AppParCurves_MultiCurve - AppParCurves_MultiPoint - ApproxInt_SvSurfaces - BRepPrim_OneAxis - BRepSweep_NumLinearRegularSweep - BRepSweep_Translation - BRepSweep_Trsf - DBC_BaseArray - GeomFill_Profiler - HatchGen_PointOnHatching - math_BFGS - math_FunctionSet - math_FunctionSetRoot - math_FunctionWithDerivative - math_MultipleVarFunction - math_MultipleVarFunctionWithHessian - math_MultipleVarFunctionWithGradient - math_Powell - math_NewtonMinimum - math_NewtonFunctionSetRoot - math_BissecNewton (just add virtual destructor) - math_FRPR - math_BrentMinimum (just add virtual destructor) - OSD_Chronometer - ProjLib_Projector Virtual methods Delete() or Destroy() of the transient inheritors is not changed (-> separate issue). Classes Graphic3d_DataStructureManager and PrsMgr_Presentation without changes.
This commit is contained in:
@@ -24,9 +24,6 @@ uses
|
||||
|
||||
is
|
||||
|
||||
Delete(me:out) is virtual;
|
||||
---C++: alias "Standard_EXPORT virtual ~ApproxInt_SvSurfaces(){Delete() ; }"
|
||||
|
||||
Compute(me: in out;
|
||||
u1,v1,u2,v2: in out Real from Standard;
|
||||
Pt: out Pnt from gp;
|
||||
@@ -52,7 +49,9 @@ is
|
||||
TangencyOnSurf2(me: in out;
|
||||
u1,v1,u2,v2: in Real from Standard;
|
||||
Tg: out Vec2d from gp)
|
||||
returns Boolean from Standard is deferred;
|
||||
returns Boolean from Standard is deferred;
|
||||
|
||||
---C++: alias " Standard_EXPORT virtual ~ApproxInt_SvSurfaces();"
|
||||
|
||||
end SvSurfaces;
|
||||
|
||||
|
@@ -14,5 +14,10 @@
|
||||
|
||||
#include <ApproxInt_SvSurfaces.ixx>
|
||||
|
||||
void ApproxInt_SvSurfaces::Delete()
|
||||
{}
|
||||
//=======================================================================
|
||||
//function : ~ApproxInt_SvSurfaces
|
||||
//purpose : Destructor
|
||||
//=======================================================================
|
||||
ApproxInt_SvSurfaces::~ApproxInt_SvSurfaces()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user