1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis

Added initialization of fields that had not initialization
Added default constructors to classes without constructors
This commit is contained in:
mkrylova
2020-07-17 13:08:31 +03:00
committed by bugmaster
parent 078f916446
commit d533dafb56
293 changed files with 1790 additions and 304 deletions

View File

@@ -33,8 +33,10 @@ IntPatch_ALine::IntPatch_ALine (const IntAna_Curve& C,
const IntSurf_TypeTrans Trans1,
const IntSurf_TypeTrans Trans2) :
IntPatch_Line(Tang,Trans1,Trans2),
fipt(Standard_False),lapt(Standard_False)
fipt(Standard_False),
lapt(Standard_False),
indf(0),
indl(0)
{
typ = IntPatch_Analytic;
curv = C;
@@ -46,8 +48,10 @@ IntPatch_ALine::IntPatch_ALine (const IntAna_Curve& C,
const IntSurf_Situation Situ1,
const IntSurf_Situation Situ2) :
IntPatch_Line(Tang,Situ1,Situ2),
fipt(Standard_False),lapt(Standard_False)
fipt(Standard_False),
lapt(Standard_False),
indf(0),
indl(0)
{
typ = IntPatch_Analytic;
curv = C;
@@ -57,8 +61,10 @@ IntPatch_ALine::IntPatch_ALine (const IntAna_Curve& C,
IntPatch_ALine::IntPatch_ALine (const IntAna_Curve& C,
const Standard_Boolean Tang) :
IntPatch_Line(Tang),
fipt(Standard_False),lapt(Standard_False)
fipt(Standard_False),
lapt(Standard_False),
indf(0),
indl(0)
{
typ = IntPatch_Analytic;
curv = C;

View File

@@ -26,7 +26,10 @@ static
//purpose :
//=======================================================================
IntPatch_ImpImpIntersection::IntPatch_ImpImpIntersection ():
myDone(IntStatus_Fail)
myDone(IntStatus_Fail),
empt(Standard_True),
tgte(Standard_False),
oppo(Standard_False)
{
}
//=======================================================================

View File

@@ -42,8 +42,15 @@ static const int Pourcent3[9] = {0, 1, 2, 0, 1, 2, 0, 1, 2};
//=======================================================================
IntPatch_InterferencePolyhedron::IntPatch_InterferencePolyhedron ()
: Intf_Interference(Standard_False)
{}
: Intf_Interference(Standard_False),
Incidence(0)
{
memset (OI, 0, sizeof (OI));
memset (TI, 0, sizeof (TI));
memset (dpOeT, 0, sizeof (dpOeT));
memset (dpOpT, 0, sizeof (dpOpT));
memset (deOpT, 0, sizeof (deOpT));
}
//=======================================================================
//function : IntPatch_InterferencePolyhedron
@@ -52,8 +59,14 @@ IntPatch_InterferencePolyhedron::IntPatch_InterferencePolyhedron ()
IntPatch_InterferencePolyhedron::IntPatch_InterferencePolyhedron
(const IntPatch_Polyhedron& FirstPol, const IntPatch_Polyhedron& SeconPol)
: Intf_Interference(Standard_False)
: Intf_Interference(Standard_False),
Incidence(0)
{
memset (OI, 0, sizeof (OI));
memset (TI, 0, sizeof (TI));
memset (dpOeT, 0, sizeof (dpOeT));
memset (dpOpT, 0, sizeof (dpOpT));
memset (deOpT, 0, sizeof (deOpT));
if (!IntPatch_PolyhedronTool::Bounding(FirstPol).IsOut
(IntPatch_PolyhedronTool::Bounding(SeconPol))) {
Tolerance=IntPatch_PolyhedronTool::DeflectionOverEstimation(FirstPol)+
@@ -71,8 +84,14 @@ IntPatch_InterferencePolyhedron::IntPatch_InterferencePolyhedron
IntPatch_InterferencePolyhedron::IntPatch_InterferencePolyhedron
(const IntPatch_Polyhedron& Objet)
: Intf_Interference(Standard_True)
: Intf_Interference(Standard_True),
Incidence(0)
{
memset (OI, 0, sizeof (OI));
memset (TI, 0, sizeof (TI));
memset (dpOeT, 0, sizeof (dpOeT));
memset (dpOpT, 0, sizeof (dpOpT));
memset (deOpT, 0, sizeof (deOpT));
Tolerance=IntPatch_PolyhedronTool::DeflectionOverEstimation(Objet)*2;
if (Tolerance==0.)
Tolerance=Epsilon(1000.);

View File

@@ -45,11 +45,16 @@ const IntPatch_SequenceOfLine& IntPatch_Intersection::SequenceOfLine() const { r
//======================================================================
IntPatch_Intersection::IntPatch_Intersection ()
: done(Standard_False),
//empt, tgte, oppo,
empt(Standard_True),
tgte(Standard_False),
oppo(Standard_False),
myTolArc(0.0), myTolTang(0.0),
myUVMaxStep(0.0), myFleche(0.0),
myIsStartPnt(Standard_False)
//myU1Start, myV1Start, myU2Start, myV2Start
myIsStartPnt(Standard_False),
myU1Start(0.0),
myV1Start(0.0),
myU2Start(0.0),
myV2Start(0.0)
{
}
@@ -63,11 +68,16 @@ IntPatch_Intersection::IntPatch_Intersection(const Handle(Adaptor3d_HSurface)&
const Standard_Real TolArc,
const Standard_Real TolTang)
: done(Standard_False),
//empt, tgte, oppo,
empt(Standard_True),
tgte(Standard_False),
oppo(Standard_False),
myTolArc(TolArc), myTolTang(TolTang),
myUVMaxStep(0.0), myFleche(0.0),
myIsStartPnt(Standard_False)
//myU1Start, myV1Start, myU2Start, myV2Start
myIsStartPnt(Standard_False),
myU1Start(0.0),
myV1Start(0.0),
myU2Start(0.0),
myV2Start(0.0)
{
if(myTolArc<1e-8) myTolArc=1e-8;
if(myTolTang<1e-8) myTolTang=1e-8;
@@ -84,11 +94,16 @@ IntPatch_Intersection::IntPatch_Intersection(const Handle(Adaptor3d_HSurface)&
const Standard_Real TolArc,
const Standard_Real TolTang)
: done(Standard_False),
//empt, tgte, oppo,
empt(Standard_True),
tgte(Standard_False),
oppo(Standard_False),
myTolArc(TolArc), myTolTang(TolTang),
myUVMaxStep(0.0), myFleche(0.0),
myIsStartPnt(Standard_False)
//myU1Start, myV1Start, myU2Start, myV2Start
myIsStartPnt(Standard_False),
myU1Start(0.0),
myV1Start(0.0),
myU2Start(0.0),
myV2Start(0.0)
{
Perform(S1,D1,TolArc,TolTang);
}

View File

@@ -31,8 +31,10 @@
//=======================================================================
IntPatch_PolyLine::IntPatch_PolyLine ()
: IntPatch_Polygo(INITDEFLE)
{}
: IntPatch_Polygo(INITDEFLE),
onfirst(Standard_False)
{
}
//=======================================================================
//function : IntPatch_PolyLine
@@ -40,8 +42,10 @@ IntPatch_PolyLine::IntPatch_PolyLine ()
//=======================================================================
IntPatch_PolyLine::IntPatch_PolyLine (const Standard_Real InitDefle)
: IntPatch_Polygo(InitDefle)
{}
: IntPatch_Polygo(InitDefle),
onfirst(Standard_False)
{
}
//=======================================================================
//function : SetWLine

View File

@@ -302,7 +302,9 @@ static void DublicateOfLinesProcessing( const IntWalk_PWalking& thePW,
// function :
// purpose :
//==================================================================================
IntPatch_PrmPrmIntersection::IntPatch_PrmPrmIntersection(): done(Standard_False)
IntPatch_PrmPrmIntersection::IntPatch_PrmPrmIntersection()
: done(Standard_False),
empt(Standard_True)
{
}

View File

@@ -30,8 +30,15 @@ IMPLEMENT_STANDARD_RTTIEXT(IntPatch_RLine,IntPatch_PointLine)
IntPatch_RLine::IntPatch_RLine (const Standard_Boolean Tang,
const IntSurf_TypeTrans Trans1,
const IntSurf_TypeTrans Trans2) :
IntPatch_PointLine(Tang,Trans1,Trans2), fipt(Standard_False),lapt(Standard_False)
IntPatch_PointLine(Tang,Trans1,Trans2),
ParamInf1(0.0),
ParamSup1(0.0),
ParamInf2(0.0),
ParamSup2(0.0),
fipt(Standard_False),
lapt(Standard_False),
indf(0),
indl(0)
{
typ = IntPatch_Restriction;
onS2=Standard_False;
@@ -42,7 +49,15 @@ IntPatch_RLine::IntPatch_RLine (const Standard_Boolean Tang,
IntPatch_RLine::IntPatch_RLine (const Standard_Boolean Tang,
const IntSurf_Situation Situ1,
const IntSurf_Situation Situ2) :
IntPatch_PointLine(Tang,Situ1,Situ2), fipt(Standard_False),lapt(Standard_False)
IntPatch_PointLine(Tang,Situ1,Situ2),
ParamInf1(0.0),
ParamSup1(0.0),
ParamInf2(0.0),
ParamSup2(0.0),
fipt(Standard_False),
lapt(Standard_False),
indf(0),
indl(0)
{
typ = IntPatch_Restriction;
onS2=Standard_False;
@@ -51,8 +66,15 @@ IntPatch_RLine::IntPatch_RLine (const Standard_Boolean Tang,
IntPatch_RLine::IntPatch_RLine (const Standard_Boolean Tang) :
IntPatch_PointLine(Tang), fipt(Standard_False),lapt(Standard_False)
IntPatch_PointLine(Tang),
ParamInf1(0.0),
ParamSup1(0.0),
ParamInf2(0.0),
ParamSup2(0.0),
fipt(Standard_False),
lapt(Standard_False),
indf(0),
indl(0)
{
typ = IntPatch_Restriction;
onS2=Standard_False;