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

@@ -49,7 +49,25 @@ Standard_EXPORT Standard_Boolean AppBlend_GetContextApproxWithNoTgt();
//purpose :
//=======================================================================
AppBlend_AppSurf::AppBlend_AppSurf ():done(Standard_False) {}
AppBlend_AppSurf::AppBlend_AppSurf ()
: done(Standard_False),
dmin(0),
dmax(0),
tol3d(0.0),
tol2d(0.0),
nbit(0),
udeg(0),
vdeg(0),
knownp(Standard_False),
tol3dreached(0.0),
tol2dreached(0.0),
paramtype(Approx_ChordLength),
continuity(GeomAbs_C2)
{
critweights[0]=0.4;
critweights[1]=0.2;
critweights[2]=0.4;
}
//=======================================================================
@@ -62,12 +80,21 @@ AppBlend_AppSurf::AppBlend_AppSurf (const Standard_Integer Degmin,
const Standard_Real Tol3d,
const Standard_Real Tol2d,
const Standard_Integer NbIt,
const Standard_Boolean KnownParameters):
done(Standard_False),dmin(Degmin),dmax(Degmax),
tol3d(Tol3d),tol2d(Tol2d),nbit(NbIt),knownp(KnownParameters)
const Standard_Boolean KnownParameters)
: done(Standard_False),
dmin(Degmin),
dmax(Degmax),
tol3d(Tol3d),
tol2d(Tol2d),
nbit(NbIt),
udeg(0),
vdeg(0),
knownp(KnownParameters),
tol3dreached(0.0),
tol2dreached(0.0),
paramtype(Approx_ChordLength),
continuity(GeomAbs_C2)
{
continuity = GeomAbs_C2;
paramtype = Approx_ChordLength;
critweights[0]=0.4;
critweights[1]=0.2;
critweights[2]=0.4;