0025622: CAST analysis: Avoid invocation of virtual Methods of the declared Class...
authorazn <azn@opencascade.com>
Thu, 18 Dec 2014 07:27:01 +0000 (10:27 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 29 Jan 2015 10:43:36 +0000 (13:43 +0300)
commit6da30ff153a42ef3f2cc3a095ae49f9b086d3043
tree4a2e74c00200cf2af22a4215a8f269073b2c6e08
parente2b55410ff16eec05e3f66d063167caa4ae207f0
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.
63 files changed:
src/Adaptor2d/Adaptor2d_Curve2d.cdl
src/Adaptor2d/Adaptor2d_Curve2d.cxx
src/Adaptor3d/Adaptor3d_Curve.cdl
src/Adaptor3d/Adaptor3d_Curve.cxx
src/Adaptor3d/Adaptor3d_Surface.cdl
src/Adaptor3d/Adaptor3d_Surface.cxx
src/AppBlend/AppBlend_Approx.cdl
src/AppBlend/AppBlend_Approx.cxx
src/AppCont/AppCont_Function.hxx
src/AppParCurves/AppParCurves_MultiCurve.cdl
src/AppParCurves/AppParCurves_MultiCurve.cxx
src/AppParCurves/AppParCurves_MultiPoint.cdl
src/AppParCurves/AppParCurves_MultiPoint.cxx
src/ApproxInt/ApproxInt_SvSurfaces.cdl
src/ApproxInt/ApproxInt_SvSurfaces.cxx
src/BRepPrim/BRepPrim_OneAxis.cdl
src/BRepPrim/BRepPrim_OneAxis.cxx
src/BRepSweep/BRepSweep_NumLinearRegularSweep.cdl
src/BRepSweep/BRepSweep_NumLinearRegularSweep.cxx
src/BRepSweep/BRepSweep_Translation.cdl
src/BRepSweep/BRepSweep_Translation.cxx
src/BRepSweep/BRepSweep_Trsf.cdl
src/BRepSweep/BRepSweep_Trsf.cxx
src/DBC/DBC_BaseArray.cdl
src/DBC/DBC_BaseArray.cxx
src/GeomFill/GeomFill_Profiler.cdl
src/GeomFill/GeomFill_Profiler.cxx
src/HatchGen/HatchGen_IntersectionPoint.cdl
src/HatchGen/HatchGen_IntersectionPoint.cxx
src/HatchGen/HatchGen_PointOnHatching.cdl
src/HatchGen/HatchGen_PointOnHatching.cxx
src/Interface/Interface_CopyTool.cdl
src/Interface/Interface_CopyTool.cxx
src/OSD/OSD_Chronometer.cdl
src/OSD/OSD_Chronometer.cxx
src/ProjLib/ProjLib_Projector.cdl
src/ProjLib/ProjLib_Projector.cxx
src/math/math_BFGS.cdl
src/math/math_BFGS.cxx
src/math/math_BissecNewton.cdl
src/math/math_BissecNewton.cxx
src/math/math_BrentMinimum.cdl
src/math/math_BrentMinimum.cxx
src/math/math_FRPR.cdl
src/math/math_FRPR.cxx
src/math/math_FunctionSet.cdl
src/math/math_FunctionSet.cxx
src/math/math_FunctionSetRoot.cdl
src/math/math_FunctionSetRoot.cxx
src/math/math_FunctionWithDerivative.cdl
src/math/math_FunctionWithDerivative.cxx
src/math/math_MultipleVarFunction.cdl
src/math/math_MultipleVarFunction.cxx
src/math/math_MultipleVarFunctionWithGradient.cdl
src/math/math_MultipleVarFunctionWithGradient.cxx [deleted file]
src/math/math_MultipleVarFunctionWithHessian.cdl
src/math/math_MultipleVarFunctionWithHessian.cxx [deleted file]
src/math/math_NewtonFunctionSetRoot.cdl
src/math/math_NewtonFunctionSetRoot.cxx
src/math/math_NewtonMinimum.cdl
src/math/math_NewtonMinimum.cxx
src/math/math_Powell.cdl
src/math/math_Powell.cxx