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:
@@ -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)
|
||||
{
|
||||
}
|
||||
//============================================================================
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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++;
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user