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:
@@ -28,22 +28,48 @@
|
||||
#include <TopExp.hxx>
|
||||
|
||||
BRepAdaptor_CompCurve::BRepAdaptor_CompCurve()
|
||||
: TFirst (0.0),
|
||||
TLast (0.0),
|
||||
PTol (0.0),
|
||||
myPeriod(0.0),
|
||||
CurIndex(-1),
|
||||
Forward (Standard_False),
|
||||
IsbyAC (Standard_False),
|
||||
Periodic(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
BRepAdaptor_CompCurve::BRepAdaptor_CompCurve(const TopoDS_Wire& W,
|
||||
const Standard_Boolean AC)
|
||||
BRepAdaptor_CompCurve::BRepAdaptor_CompCurve(const TopoDS_Wire& theWire,
|
||||
const Standard_Boolean theIsAC)
|
||||
: myWire (theWire),
|
||||
TFirst (0.0),
|
||||
TLast (0.0),
|
||||
PTol (0.0),
|
||||
myPeriod(0.0),
|
||||
CurIndex(-1),
|
||||
Forward (Standard_False),
|
||||
IsbyAC (theIsAC),
|
||||
Periodic(Standard_False)
|
||||
{
|
||||
Initialize(W, AC);
|
||||
Initialize(theWire, theIsAC);
|
||||
}
|
||||
|
||||
BRepAdaptor_CompCurve::BRepAdaptor_CompCurve(const TopoDS_Wire& W,
|
||||
const Standard_Boolean AC,
|
||||
const Standard_Real First,
|
||||
const Standard_Real Last,
|
||||
const Standard_Real Tol)
|
||||
BRepAdaptor_CompCurve::BRepAdaptor_CompCurve(const TopoDS_Wire& theWire,
|
||||
const Standard_Boolean theIsAC,
|
||||
const Standard_Real theFirst,
|
||||
const Standard_Real theLast,
|
||||
const Standard_Real theTolerance)
|
||||
: myWire (theWire),
|
||||
TFirst (theFirst),
|
||||
TLast (theLast),
|
||||
PTol (theTolerance),
|
||||
myPeriod(0.0),
|
||||
CurIndex(-1),
|
||||
Forward (Standard_False),
|
||||
IsbyAC (theIsAC),
|
||||
Periodic(Standard_False)
|
||||
{
|
||||
Initialize(W, AC, First, Last, Tol);
|
||||
Initialize(theWire, theIsAC, theFirst, theLast, theTolerance);
|
||||
}
|
||||
|
||||
void BRepAdaptor_CompCurve::Initialize(const TopoDS_Wire& W,
|
||||
|
Reference in New Issue
Block a user