1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -31,7 +31,12 @@
//============================================================================
BRepClass3d_Intersector3d::BRepClass3d_Intersector3d()
: done(Standard_False),hasapoint(Standard_False)
: U(0.0),
V(0.0),
W(0.0),
done(Standard_False),
hasapoint(Standard_False),
state(TopAbs_UNKNOWN)
{
}
//============================================================================

View File

@@ -61,7 +61,8 @@ static void Trans(Standard_Real parmin, IntCurveSurface_TransitionOnCurve& tran,
//function : BRepClass3d_SClassifier
//purpose :
//=======================================================================
BRepClass3d_SClassifier::BRepClass3d_SClassifier()
BRepClass3d_SClassifier::BRepClass3d_SClassifier()
: myState(0)
{
}

View File

@@ -96,7 +96,9 @@ void BRepClass3d_SolidClassifier::Load(const TopoDS_Shape& S) {
}
BRepClass3d_SolidClassifier::BRepClass3d_SolidClassifier(const TopoDS_Shape& S)
: aSolidLoaded(Standard_True),explorer(S)
: aSolidLoaded(Standard_True),
explorer(S),
isaholeinspace(Standard_False)
{
#if LBRCOMPT
STAT.NbConstrShape++;

View File

@@ -771,7 +771,10 @@ Standard_Boolean BRepClass3d_SolidExplorer::FindAPointInTheFace
//purpose :
//=======================================================================
BRepClass3d_SolidExplorer::BRepClass3d_SolidExplorer()
BRepClass3d_SolidExplorer::BRepClass3d_SolidExplorer()
: myReject(Standard_True),
myFirstFace(0),
myParamOnEdge(0.0)
{
}