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

@@ -22,6 +22,7 @@
//=======================================================================
inline LocOpe_Generator::LocOpe_Generator()
: myDone(Standard_False)
{
}

View File

@@ -19,7 +19,11 @@
//purpose :
//=======================================================================
inline LocOpe_LinearForm::LocOpe_LinearForm () {}
inline LocOpe_LinearForm::LocOpe_LinearForm ()
: myDone(Standard_False),
myIsTrans(Standard_False)
{
}
//=======================================================================

View File

@@ -38,7 +38,12 @@ public:
//! Empty constructor. Useful only for the list.
LocOpe_PntFace() {}
LocOpe_PntFace()
: myPar(0.0),
myUPar(0.0),
myVPar(0.0)
{
}
LocOpe_PntFace (const gp_Pnt& P, const TopoDS_Face& F, const TopAbs_Orientation Or, const Standard_Real Param, const Standard_Real UPar, const Standard_Real VPar)
: myPnt (P), myFace (F), myOri (Or), myPar (Param), myUPar (UPar), myVPar (VPar)

View File

@@ -42,8 +42,11 @@
//function : LocOpe_Prism
//purpose :
//=======================================================================
LocOpe_Prism::LocOpe_Prism(): myDone(Standard_False)
{}
LocOpe_Prism::LocOpe_Prism()
: myIsTrans(Standard_False),
myDone(Standard_False)
{
}
//=======================================================================
//function : LocOpe_Prism

View File

@@ -49,10 +49,13 @@ static Standard_Boolean FindCircle(const gp_Ax1&,
//purpose :
//=======================================================================
LocOpe_Revol::LocOpe_Revol() : myDone(Standard_False)
{}
LocOpe_Revol::LocOpe_Revol()
: myAngle(0.0),
myAngTra(0.0),
myIsTrans(Standard_False),
myDone(Standard_False)
{
}
//=======================================================================
//function : Perform

View File

@@ -43,9 +43,13 @@
//function : LocOpe_Revol
//purpose :
//=======================================================================
LocOpe_RevolutionForm::LocOpe_RevolutionForm() : myDone(Standard_False)
{}
LocOpe_RevolutionForm::LocOpe_RevolutionForm()
: myAngle(0.0),
myAngTra(0.0),
myDone(Standard_False),
myIsTrans(Standard_False)
{
}
//=======================================================================

View File

@@ -22,6 +22,7 @@
//=======================================================================
inline LocOpe_Spliter::LocOpe_Spliter()
: myDone(Standard_False)
{
}

View File

@@ -108,9 +108,13 @@ static void FindInternalIntersections(const TopoDS_Edge&,
//purpose :
//=======================================================================
LocOpe_WiresOnShape::LocOpe_WiresOnShape(const TopoDS_Shape& S):
myShape(S),myCheckInterior(Standard_True),myDone(Standard_False)
{}
LocOpe_WiresOnShape::LocOpe_WiresOnShape(const TopoDS_Shape& S)
: myShape(S),
myCheckInterior(Standard_True),
myDone(Standard_False),
myIndex(-1)
{
}
//=======================================================================
//function : Init