mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -54,9 +54,6 @@ is
|
||||
-- Global methods - Apply to the whole curve.
|
||||
--
|
||||
|
||||
Delete(me:out) is virtual;
|
||||
---C++: alias "Standard_EXPORT virtual ~Adaptor3d_Curve(){Delete();}"
|
||||
|
||||
FirstParameter(me) returns Real
|
||||
is virtual;
|
||||
|
||||
@@ -245,6 +242,8 @@ is
|
||||
raises
|
||||
NoSuchObject from Standard
|
||||
is virtual;
|
||||
|
||||
---C++: alias " Standard_EXPORT virtual ~Adaptor3d_Curve();"
|
||||
|
||||
end Curve;
|
||||
|
||||
|
@@ -17,8 +17,14 @@
|
||||
#include <Adaptor3d_Curve.ixx>
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
|
||||
void Adaptor3d_Curve::Delete()
|
||||
{}
|
||||
//=======================================================================
|
||||
//function : ~Adaptor3d_Curve
|
||||
//purpose : Destructor
|
||||
//=======================================================================
|
||||
|
||||
Adaptor3d_Curve::~Adaptor3d_Curve()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : FirstParameter
|
||||
|
@@ -62,9 +62,6 @@ is
|
||||
-- Global methods - Apply to the whole surface.
|
||||
--
|
||||
|
||||
Delete(me:out) is virtual;
|
||||
---C++: alias "Standard_EXPORT virtual ~Adaptor3d_Surface(){Delete();}"
|
||||
|
||||
FirstUParameter(me) returns Real
|
||||
is virtual;
|
||||
|
||||
@@ -315,6 +312,8 @@ is
|
||||
raises
|
||||
NoSuchObject from Standard -- only for Offset Surface
|
||||
is virtual;
|
||||
|
||||
---C++: alias " Standard_EXPORT virtual ~Adaptor3d_Surface();"
|
||||
|
||||
end Surface;
|
||||
|
||||
|
@@ -17,8 +17,14 @@
|
||||
#include <Adaptor3d_Surface.ixx>
|
||||
#include <Standard_NotImplemented.hxx>
|
||||
|
||||
void Adaptor3d_Surface::Delete()
|
||||
{}
|
||||
//=======================================================================
|
||||
//function : ~Adaptor3d_Surface
|
||||
//purpose : Destructor
|
||||
//=======================================================================
|
||||
|
||||
Adaptor3d_Surface::~Adaptor3d_Surface()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : FirstUParameter
|
||||
|
Reference in New Issue
Block a user