mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0025621: CAST analysis - Avoid constructors not supplying an initial value for all non-static data members
The constructors of classes from following files have been fixed to ensure that all non-static fields are initialized: Adaptor2d_Line2d.cxx Adaptor3d_IsoCurve.cxx Adaptor3d_OffsetCurve.cxx AdvApp2Var_ApproxAFunc2Var.cxx AIS_Dimension.cxx AIS_InteractiveContext.cxx Aspect_DisplayConnection.cxx BiTgte_CurveOnEdge.cxx BiTgte_CurveOnVertex.cxx BRepAdaptor_CompCurve.cxx BRepMesh_Circle.hxx BRepMesh_Delaun.cxx BRepToIGES_BREntity.cxx ChFi2d_AnaFilletAlgo.cxx ChFi2d_ChamferAPI.cxx ChFi2d_FilletAlgo.cxx ChFi2d_FilletAlgo.hxx Extrema_ExtPExtS.cxx Font_FTFont.cxx GccEnt_QualifiedCirc.cxx Geom2dAdaptor_Curve.cxx IGESData_IGESEntity.cxx IGESData_DefSwitch.cxx IGESToBRep_CurveAndSurface.cxx LDOM_XmlReader.cxx math_TrigonometricFunctionRoots.cxx NCollection_ListNode.hxx ProjLib_CompProjectedCurve.cxx ProjLib_ComputeApproxOnPolarSurface.cxx Select3D_Box2d.hxx Select3D_PointData.hxx
This commit is contained in:
@@ -144,9 +144,17 @@ void Extrema_ExtPExtS::MakePreciser (Standard_Real& U,
|
||||
}
|
||||
//=============================================================================
|
||||
|
||||
Extrema_ExtPExtS::Extrema_ExtPExtS ()
|
||||
Extrema_ExtPExtS::Extrema_ExtPExtS()
|
||||
: myuinf(0.0),
|
||||
myusup(0.0),
|
||||
mytolu(0.0),
|
||||
myvinf(0.0),
|
||||
myvsup(0.0),
|
||||
mytolv(0.0),
|
||||
myIsAnalyticallyComputable(Standard_False),
|
||||
myDone(Standard_False),
|
||||
myNbExt(Standard_False)
|
||||
{
|
||||
myDone = Standard_False;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
@@ -159,6 +167,16 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
|
||||
const Standard_Real theVsup,
|
||||
const Standard_Real theTolU,
|
||||
const Standard_Real theTolV)
|
||||
: myuinf(theUmin),
|
||||
myusup(theUsup),
|
||||
mytolu(theTolU),
|
||||
myvinf(theVmin),
|
||||
myvsup(theVsup),
|
||||
mytolv(theTolV),
|
||||
myS (theS),
|
||||
myIsAnalyticallyComputable(Standard_False),
|
||||
myDone(Standard_False),
|
||||
myNbExt(Standard_False)
|
||||
{
|
||||
Initialize (theS,
|
||||
theUmin,
|
||||
@@ -176,6 +194,16 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
|
||||
const Handle(Adaptor3d_HSurfaceOfLinearExtrusion)& theS,
|
||||
const Standard_Real theTolU,
|
||||
const Standard_Real theTolV)
|
||||
: myuinf(theS->FirstUParameter()),
|
||||
myusup(theS->LastUParameter()),
|
||||
mytolu(theTolU),
|
||||
myvinf(theS->FirstVParameter()),
|
||||
myvsup(theS->LastVParameter()),
|
||||
mytolv(theTolV),
|
||||
myS (theS),
|
||||
myIsAnalyticallyComputable(Standard_False),
|
||||
myDone(Standard_False),
|
||||
myNbExt(Standard_False)
|
||||
{
|
||||
Initialize (theS,
|
||||
theS->FirstUParameter(),
|
||||
@@ -187,6 +215,7 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
|
||||
|
||||
Perform (theP);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Initialize
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user