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
+6 -2
View File
@@ -31,9 +31,13 @@
//purpose :
//=======================================================================
GeomAPI_ExtremaCurveCurve::GeomAPI_ExtremaCurveCurve()
: myIsDone(Standard_False),
myIndex(0),
myTotalExt(Standard_False),
myIsInfinite(Standard_False),
myTotalDist(0.0)
{
myIsDone = Standard_False;
myTotalExt = Standard_False;
memset (myTotalPars, 0, sizeof (myTotalPars));
}
+2 -1
View File
@@ -33,8 +33,9 @@
//purpose :
//=======================================================================
GeomAPI_ExtremaCurveSurface::GeomAPI_ExtremaCurveSurface()
: myIsDone(Standard_False),
myIndex(0)
{
myIsDone = Standard_False;
}
@@ -30,8 +30,9 @@
//purpose :
//=======================================================================
GeomAPI_ExtremaSurfaceSurface::GeomAPI_ExtremaSurfaceSurface()
: myIsDone(Standard_False),
myIndex(0)
{
myIsDone = Standard_False;
}
+2 -1
View File
@@ -28,8 +28,9 @@
//purpose :
//=======================================================================
GeomAPI_ProjectPointOnCurve::GeomAPI_ProjectPointOnCurve()
: myIsDone(Standard_False),
myIndex(0)
{
myIsDone = Standard_False;
}
//=======================================================================
//function : GeomAPI_ProjectPointOnCurve
+4 -1
View File
@@ -29,7 +29,10 @@
//purpose :
//=======================================================================
GeomAPI_ProjectPointOnSurf::GeomAPI_ProjectPointOnSurf()
: myIsDone (Standard_False) { }
: myIsDone (Standard_False),
myIndex(0)
{
}
//=======================================================================