1
0
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:
azn
2014-12-18 10:27:01 +03:00
committed by bugmaster
parent e2b55410ff
commit 6da30ff153
63 changed files with 226 additions and 239 deletions

View File

@@ -170,7 +170,9 @@ is
---Purpose: Dump of the point on element.
is deferred ;
is deferred;
---C++: alias " Standard_EXPORT virtual ~HatchGen_IntersectionPoint();"
fields

View File

@@ -32,6 +32,16 @@ HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
{
}
//=======================================================================
// Function : ~HatchGen_IntersectionPoint
// Purpose : Destructor
//=======================================================================
HatchGen_IntersectionPoint::~HatchGen_IntersectionPoint()
{
}
//=======================================================================
// Function : SetIndex
// Purpose : Sets the index of the supporting curve.

View File

@@ -58,11 +58,6 @@ is
---Category: PointOnHatching
returns PointOnHatching from HatchGen ;
Delete (me : out) is virtual;
---C++: alias "Standard_EXPORT virtual ~HatchGen_PointOnHatching(){Delete();}"
---Purpose: linux porting
AddPoint (me : in out ; Point : PointOnElement from HatchGen ;
Confusion : Real from Standard)

View File

@@ -68,9 +68,6 @@ HatchGen_PointOnHatching::HatchGen_PointOnHatching (const IntRes2d_IntersectionP
myPoints.Clear() ;
}
void HatchGen_PointOnHatching::Delete()
{}
//=======================================================================
// Function : AddPoint
// Purpose : Adds a point on element to the point.
@@ -88,7 +85,6 @@ void HatchGen_PointOnHatching::AddPoint (const HatchGen_PointOnElement& Point,
if (IPnt > NbPnt) myPoints.Append (Point) ;
}
//=======================================================================
// Function : NbPoints
// Purpose : Returns the number of elements intersecting the hatching at