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

@@ -82,6 +82,9 @@ static Standard_Boolean CheckThin(const TopoDS_Shape& w,
//=======================================================================
BRepCheck_Face::BRepCheck_Face (const TopoDS_Face& F)
: myIntres(BRepCheck_NoError),
myImbres(BRepCheck_NoError),
myOrires(BRepCheck_NoError)
{
Init(F);
myIntdone = Standard_False;

View File

@@ -111,6 +111,11 @@ inline Standard_Boolean IsOriented(const TopoDS_Shape& S)
//=======================================================================
BRepCheck_Shell::BRepCheck_Shell(const TopoDS_Shell& S)
: myNbori(0),
myCdone(Standard_False),
myCstat(BRepCheck_NoError),
myOdone(Standard_False),
myOstat(BRepCheck_NoError)
{
Init(S);
}

View File

@@ -130,6 +130,9 @@ static Standard_Boolean GetPnt2d(const TopoDS_Vertex &theVertex,
//purpose :
//=======================================================================
BRepCheck_Wire::BRepCheck_Wire(const TopoDS_Wire& W)
: myCdone(Standard_False),
myCstat(BRepCheck_NoError),
myGctrl(Standard_False)
{
Init(W);
}