mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -64,12 +64,26 @@
|
||||
|
||||
//=======================================================================
|
||||
//function : IGESToBRep_CurveAndSurface
|
||||
//purpose :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface()
|
||||
: myEps (1.e-04),
|
||||
myEpsCoeff (1.e-06),
|
||||
myEpsGeom (1.e-04),
|
||||
myMinTol (-1.0),
|
||||
myMaxTol (-1.0),
|
||||
myModeIsTopo (Standard_True),
|
||||
myModeApprox (Standard_False),
|
||||
myContIsOpti (Standard_False),
|
||||
myUnitFactor (1.0),
|
||||
mySurfaceCurve(0),
|
||||
myContinuity (0),
|
||||
myUVResolution(0.0),
|
||||
myIsResolCom (Standard_False),
|
||||
myTP (new Transfer_TransientProcess())
|
||||
{
|
||||
Init();
|
||||
UpdateMinMaxTol();
|
||||
}
|
||||
|
||||
|
||||
@@ -80,24 +94,23 @@ IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface()
|
||||
|
||||
IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface
|
||||
(const IGESToBRep_CurveAndSurface& other)
|
||||
: myEps (other.myEps),
|
||||
myEpsCoeff (other.myEpsCoeff),
|
||||
myEpsGeom (other.myEpsGeom),
|
||||
myMinTol (other.myMinTol),
|
||||
myMaxTol (other.myMaxTol),
|
||||
myModeIsTopo (other.myModeIsTopo),
|
||||
myModeApprox (other.myModeApprox),
|
||||
myContIsOpti (other.myContIsOpti),
|
||||
myUnitFactor (other.myUnitFactor),
|
||||
mySurfaceCurve(other.mySurfaceCurve),
|
||||
myContinuity (other.myContinuity),
|
||||
mySurface (other.mySurface),
|
||||
myUVResolution(other.myUVResolution),
|
||||
myIsResolCom (other.myIsResolCom),
|
||||
myModel (other.myModel),
|
||||
myTP (other.myTP)
|
||||
{
|
||||
myEps = other.GetEpsilon();
|
||||
myEpsCoeff = other.GetEpsCoeff();
|
||||
myEpsGeom = other.GetEpsGeom();
|
||||
myMaxTol = other.GetMaxTol();
|
||||
myModeIsTopo = other.GetModeTransfer();
|
||||
myModeApprox = other.GetModeApprox();
|
||||
myContIsOpti = other.GetOptimized();
|
||||
myUnitFactor = other.GetUnitFactor();
|
||||
mySurfaceCurve = other.GetSurfaceCurve();
|
||||
myContinuity = other.GetContinuity();
|
||||
myModel = other.GetModel();
|
||||
myTP = other.GetTransferProcess();
|
||||
myMinTol = other.GetMinTol();
|
||||
|
||||
mySurface = other.Surface();
|
||||
myIsResolCom = other.myIsResolCom;
|
||||
myUVResolution = other.myUVResolution;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,20 +126,21 @@ IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface
|
||||
const Standard_Boolean mode,
|
||||
const Standard_Boolean modeapprox,
|
||||
const Standard_Boolean optimized)
|
||||
{
|
||||
myEps = eps;
|
||||
myEpsCoeff = epsCoeff;
|
||||
myEpsGeom = epsGeom;
|
||||
myModeIsTopo = mode;
|
||||
myModeApprox = modeapprox;
|
||||
myContIsOpti = optimized;
|
||||
myUnitFactor = 1.;
|
||||
mySurfaceCurve = 0;
|
||||
myContinuity = 0;
|
||||
myTP = new Transfer_TransientProcess();
|
||||
|
||||
myIsResolCom = Standard_False;
|
||||
myUVResolution = 0.;
|
||||
: myEps (eps),
|
||||
myEpsCoeff (epsCoeff),
|
||||
myEpsGeom (epsGeom),
|
||||
myMinTol (-1.0),
|
||||
myMaxTol (-1.0),
|
||||
myModeIsTopo (mode),
|
||||
myModeApprox (modeapprox),
|
||||
myContIsOpti (optimized),
|
||||
myUnitFactor (1.0),
|
||||
mySurfaceCurve(0),
|
||||
myContinuity (0),
|
||||
myUVResolution(0.0),
|
||||
myIsResolCom (Standard_False),
|
||||
myTP (new Transfer_TransientProcess())
|
||||
{
|
||||
UpdateMinMaxTol();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user