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:
@@ -74,7 +74,9 @@ public:
|
||||
Init (Sbase, Pbase, Skface, Angle, Fuse, Modify);
|
||||
}
|
||||
|
||||
BRepFeat_MakeDPrism()
|
||||
BRepFeat_MakeDPrism()
|
||||
: myAngle(RealLast()),
|
||||
myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,11 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm () {}
|
||||
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm ()
|
||||
: myBnd(0.0),
|
||||
myTol(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -19,7 +19,10 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakePrism::BRepFeat_MakePrism () {}
|
||||
inline BRepFeat_MakePrism::BRepFeat_MakePrism ()
|
||||
: myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -19,7 +19,10 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol () {}
|
||||
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol ()
|
||||
: myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -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())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -19,5 +19,9 @@
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline BRepFeat_RibSlot::BRepFeat_RibSlot ()
|
||||
{}
|
||||
inline BRepFeat_RibSlot::BRepFeat_RibSlot ()
|
||||
: myFuse(Standard_False),
|
||||
mySliding(Standard_False),
|
||||
myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user