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

@@ -74,7 +74,9 @@ public:
Init (Sbase, Pbase, Skface, Angle, Fuse, Modify);
}
BRepFeat_MakeDPrism()
BRepFeat_MakeDPrism()
: myAngle(RealLast()),
myStatusError(BRepFeat_OK)
{
}

View File

@@ -19,7 +19,11 @@
//purpose :
//=======================================================================
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm () {}
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm ()
: myBnd(0.0),
myTol(0.0)
{
}
//=======================================================================

View File

@@ -19,7 +19,10 @@
//purpose :
//=======================================================================
inline BRepFeat_MakePrism::BRepFeat_MakePrism () {}
inline BRepFeat_MakePrism::BRepFeat_MakePrism ()
: myStatusError(BRepFeat_OK)
{
}
//=======================================================================

View File

@@ -19,7 +19,10 @@
//purpose :
//=======================================================================
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol () {}
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol ()
: myStatusError(BRepFeat_OK)
{
}
//=======================================================================

View File

@@ -19,7 +19,16 @@
//purpose :
//=======================================================================
inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm () {}
inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm ()
: myHeight1(0.0),
myHeight2(0.0),
mySliding(Standard_False),
myBnd(0.0),
myTol(0.0),
myAngle1(RealLast()),
myAngle2(RealLast())
{
}
//=======================================================================

View File

@@ -19,5 +19,9 @@
//purpose :
//=======================================================================
inline BRepFeat_RibSlot::BRepFeat_RibSlot ()
{}
inline BRepFeat_RibSlot::BRepFeat_RibSlot ()
: myFuse(Standard_False),
mySliding(Standard_False),
myStatusError(BRepFeat_OK)
{
}