mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -48,54 +48,57 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
AdvApp2Var_ApproxAFunc2Var::
|
||||
AdvApp2Var_ApproxAFunc2Var(const Standard_Integer Num1DSS,
|
||||
const Standard_Integer Num2DSS,
|
||||
const Standard_Integer Num3DSS,
|
||||
const Handle(TColStd_HArray1OfReal)& OneDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& TwoDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& ThreeDTol,
|
||||
const Handle(TColStd_HArray2OfReal)& OneDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& TwoDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& ThreeDTolFr,
|
||||
const Standard_Real FirstInU,
|
||||
const Standard_Real LastInU,
|
||||
const Standard_Real FirstInV,
|
||||
const Standard_Real LastInV,
|
||||
const GeomAbs_IsoType FavorIso,
|
||||
const GeomAbs_Shape ContInU,
|
||||
const GeomAbs_Shape ContInV,
|
||||
const Standard_Integer PrecisCode,
|
||||
const Standard_Integer MaxDegInU,
|
||||
const Standard_Integer MaxDegInV,
|
||||
const Standard_Integer MaxPatch,
|
||||
const AdvApp2Var_EvaluatorFunc2Var& Func,
|
||||
AdvApprox_Cutting& UChoice,
|
||||
AdvApprox_Cutting& VChoice) :
|
||||
my1DTolerances(OneDTol),
|
||||
my2DTolerances(TwoDTol),
|
||||
my3DTolerances(ThreeDTol),
|
||||
my1DTolOnFront(OneDTolFr),
|
||||
my2DTolOnFront(TwoDTolFr),
|
||||
my3DTolOnFront(ThreeDTolFr),
|
||||
myFirstParInU(FirstInU),
|
||||
myLastParInU(LastInU),
|
||||
myFirstParInV(FirstInV),
|
||||
myLastParInV(LastInV),
|
||||
myFavoriteIso(FavorIso),
|
||||
myContInU(ContInU),
|
||||
myContInV(ContInV),
|
||||
myPrecisionCode(PrecisCode),
|
||||
myMaxDegInU(MaxDegInU),
|
||||
myMaxDegInV(MaxDegInV),
|
||||
myMaxPatches(MaxPatch),
|
||||
myDone(Standard_False),
|
||||
myHasResult(Standard_False),
|
||||
myCriterionError(0.)
|
||||
AdvApp2Var_ApproxAFunc2Var::AdvApp2Var_ApproxAFunc2Var(
|
||||
const Standard_Integer Num1DSS,
|
||||
const Standard_Integer Num2DSS,
|
||||
const Standard_Integer Num3DSS,
|
||||
const Handle(TColStd_HArray1OfReal)& OneDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& TwoDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& ThreeDTol,
|
||||
const Handle(TColStd_HArray2OfReal)& OneDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& TwoDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& ThreeDTolFr,
|
||||
const Standard_Real FirstInU,
|
||||
const Standard_Real LastInU,
|
||||
const Standard_Real FirstInV,
|
||||
const Standard_Real LastInV,
|
||||
const GeomAbs_IsoType FavorIso,
|
||||
const GeomAbs_Shape ContInU,
|
||||
const GeomAbs_Shape ContInV,
|
||||
const Standard_Integer PrecisCode,
|
||||
const Standard_Integer MaxDegInU,
|
||||
const Standard_Integer MaxDegInV,
|
||||
const Standard_Integer MaxPatch,
|
||||
const AdvApp2Var_EvaluatorFunc2Var& Func,
|
||||
AdvApprox_Cutting& UChoice,
|
||||
AdvApprox_Cutting& VChoice)
|
||||
: my1DTolerances (OneDTol),
|
||||
my2DTolerances (TwoDTol),
|
||||
my3DTolerances (ThreeDTol),
|
||||
my1DTolOnFront (OneDTolFr),
|
||||
my2DTolOnFront (TwoDTolFr),
|
||||
my3DTolOnFront (ThreeDTolFr),
|
||||
myFirstParInU (FirstInU),
|
||||
myLastParInU (LastInU),
|
||||
myFirstParInV (FirstInV),
|
||||
myLastParInV (LastInV),
|
||||
myFavoriteIso (FavorIso),
|
||||
myContInU (ContInU),
|
||||
myContInV (ContInV),
|
||||
myPrecisionCode (PrecisCode),
|
||||
myMaxDegInU (MaxDegInU),
|
||||
myMaxDegInV (MaxDegInV),
|
||||
myMaxPatches (MaxPatch),
|
||||
myDone (Standard_False),
|
||||
myHasResult (Standard_False),
|
||||
myDegreeInU (0),
|
||||
myDegreeInV (0),
|
||||
myCriterionError(0.0)
|
||||
{
|
||||
myNumSubSpaces[0] = Num1DSS;
|
||||
myNumSubSpaces[1] = Num2DSS;
|
||||
myNumSubSpaces[2] = Num3DSS;
|
||||
|
||||
Init();
|
||||
Perform(UChoice, VChoice, Func);
|
||||
ConvertBS();
|
||||
@@ -106,54 +109,58 @@ myCriterionError(0.)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
AdvApp2Var_ApproxAFunc2Var::
|
||||
AdvApp2Var_ApproxAFunc2Var(const Standard_Integer Num1DSS,
|
||||
const Standard_Integer Num2DSS,
|
||||
const Standard_Integer Num3DSS,
|
||||
const Handle(TColStd_HArray1OfReal)& OneDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& TwoDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& ThreeDTol,
|
||||
const Handle(TColStd_HArray2OfReal)& OneDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& TwoDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& ThreeDTolFr,
|
||||
const Standard_Real FirstInU,
|
||||
const Standard_Real LastInU,
|
||||
const Standard_Real FirstInV,
|
||||
const Standard_Real LastInV,
|
||||
const GeomAbs_IsoType FavorIso,
|
||||
const GeomAbs_Shape ContInU,
|
||||
const GeomAbs_Shape ContInV,
|
||||
const Standard_Integer PrecisCode,
|
||||
const Standard_Integer MaxDegInU,
|
||||
const Standard_Integer MaxDegInV,
|
||||
const Standard_Integer MaxPatch,
|
||||
const AdvApp2Var_EvaluatorFunc2Var& Func,
|
||||
const AdvApp2Var_Criterion& Crit,
|
||||
AdvApprox_Cutting& UChoice,
|
||||
AdvApprox_Cutting& VChoice) :
|
||||
my1DTolerances(OneDTol),
|
||||
my2DTolerances(TwoDTol),
|
||||
my3DTolerances(ThreeDTol),
|
||||
my1DTolOnFront(OneDTolFr),
|
||||
my2DTolOnFront(TwoDTolFr),
|
||||
my3DTolOnFront(ThreeDTolFr),
|
||||
myFirstParInU(FirstInU),
|
||||
myLastParInU(LastInU),
|
||||
myFirstParInV(FirstInV),
|
||||
myLastParInV(LastInV),
|
||||
myFavoriteIso(FavorIso),
|
||||
myContInU(ContInU),
|
||||
myContInV(ContInV),
|
||||
myPrecisionCode(PrecisCode),
|
||||
myMaxDegInU(MaxDegInU),
|
||||
myMaxDegInV(MaxDegInV),
|
||||
myMaxPatches(MaxPatch),
|
||||
myDone(Standard_False),
|
||||
myHasResult(Standard_False)
|
||||
AdvApp2Var_ApproxAFunc2Var::AdvApp2Var_ApproxAFunc2Var(
|
||||
const Standard_Integer Num1DSS,
|
||||
const Standard_Integer Num2DSS,
|
||||
const Standard_Integer Num3DSS,
|
||||
const Handle(TColStd_HArray1OfReal)& OneDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& TwoDTol,
|
||||
const Handle(TColStd_HArray1OfReal)& ThreeDTol,
|
||||
const Handle(TColStd_HArray2OfReal)& OneDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& TwoDTolFr,
|
||||
const Handle(TColStd_HArray2OfReal)& ThreeDTolFr,
|
||||
const Standard_Real FirstInU,
|
||||
const Standard_Real LastInU,
|
||||
const Standard_Real FirstInV,
|
||||
const Standard_Real LastInV,
|
||||
const GeomAbs_IsoType FavorIso,
|
||||
const GeomAbs_Shape ContInU,
|
||||
const GeomAbs_Shape ContInV,
|
||||
const Standard_Integer PrecisCode,
|
||||
const Standard_Integer MaxDegInU,
|
||||
const Standard_Integer MaxDegInV,
|
||||
const Standard_Integer MaxPatch,
|
||||
const AdvApp2Var_EvaluatorFunc2Var& Func,
|
||||
const AdvApp2Var_Criterion& Crit,
|
||||
AdvApprox_Cutting& UChoice,
|
||||
AdvApprox_Cutting& VChoice)
|
||||
: my1DTolerances (OneDTol),
|
||||
my2DTolerances (TwoDTol),
|
||||
my3DTolerances (ThreeDTol),
|
||||
my1DTolOnFront (OneDTolFr),
|
||||
my2DTolOnFront (TwoDTolFr),
|
||||
my3DTolOnFront (ThreeDTolFr),
|
||||
myFirstParInU (FirstInU),
|
||||
myLastParInU (LastInU),
|
||||
myFirstParInV (FirstInV),
|
||||
myLastParInV (LastInV),
|
||||
myFavoriteIso (FavorIso),
|
||||
myContInU (ContInU),
|
||||
myContInV (ContInV),
|
||||
myPrecisionCode (PrecisCode),
|
||||
myMaxDegInU (MaxDegInU),
|
||||
myMaxDegInV (MaxDegInV),
|
||||
myMaxPatches (MaxPatch),
|
||||
myDone (Standard_False),
|
||||
myHasResult (Standard_False),
|
||||
myDegreeInU (0),
|
||||
myDegreeInV (0),
|
||||
myCriterionError(0.0)
|
||||
{
|
||||
myNumSubSpaces[0] = Num1DSS;
|
||||
myNumSubSpaces[1] = Num2DSS;
|
||||
myNumSubSpaces[2] = Num3DSS;
|
||||
|
||||
Init();
|
||||
Perform(UChoice, VChoice, Func, Crit);
|
||||
ConvertBS();
|
||||
|
Reference in New Issue
Block a user