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

@@ -26,7 +26,10 @@
//=======================================================================
BRepBlend_CurvPointRadInv::BRepBlend_CurvPointRadInv
(const Handle(Adaptor3d_HCurve)& C1,
const Handle(Adaptor3d_HCurve)& C2) : curv1(C1), curv2(C2)
const Handle(Adaptor3d_HCurve)& C2)
: curv1(C1),
curv2(C2),
choix(0)
{
}

View File

@@ -63,7 +63,8 @@ BRepBlend_Extremity::BRepBlend_Extremity (const gp_Pnt& P,
const Standard_Real Tol) :
pt(P),
tang(gp_Vec(0,0,0)),
param(Param),u(W),tol(Tol),isvtx(Standard_False),
param(Param),u(W),v(0.0),
tol(Tol),isvtx(Standard_False),
hastang(Standard_False)
{}

View File

@@ -18,7 +18,10 @@
#include <IntSurf_Transition.hxx>
#include <Standard_DomainError.hxx>
BRepBlend_PointOnRst::BRepBlend_PointOnRst () {}
BRepBlend_PointOnRst::BRepBlend_PointOnRst ()
: prm(0.0)
{
}
BRepBlend_PointOnRst::BRepBlend_PointOnRst(const Handle(Adaptor2d_HCurve2d)& A,

View File

@@ -68,10 +68,13 @@ BRepBlend_RstRstConstRad::BRepBlend_RstRstConstRad
surf1(Surf1), surf2(Surf2), rst1(Rst1), rst2(Rst2),
cons1(Rst1, Surf1), cons2(Rst2, Surf2),
guide(CGuide), tguide(CGuide),
istangent(Standard_True), maxang(RealFirst()), minang(RealLast()),
distmin(RealLast()),
mySShape(BlendFunc_Rational)
{}
prmrst1(0.0), prmrst2(0.0),
istangent(Standard_True), ray(0.0),
choix(0), normtg(0.0), theD(0.0),
maxang(RealFirst()), minang(RealLast()),
distmin(RealLast()), mySShape(BlendFunc_Rational)
{
}
//=======================================================================
//function : NbVariables

View File

@@ -174,8 +174,13 @@ BRepBlend_RstRstLineBuilder::BRepBlend_RstRstLineBuilder
const Handle(Adaptor3d_HSurface)& Surf2,
const Handle(Adaptor2d_HCurve2d)& Rst2,
const Handle(Adaptor3d_TopolTool)& Domain2):
sol(1,2), surf1(Surf1), domain1(Domain1),
surf2(Surf2), domain2(Domain2), rst1(Rst1), rst2(Rst2)
done(Standard_False), sol(1, 2), surf1(Surf1),
domain1(Domain1), surf2(Surf2),
domain2(Domain2), rst1(Rst1), rst2(Rst2),
tolesp(0.0), tolgui(0.0), pasmax(0.0),
fleche(0.0), param(0.0), rebrou(Standard_False),
iscomplete(Standard_False), comptra(Standard_False), sens(0.0),
decrochdeb(Blend_NoDecroch), decrochfin(Blend_NoDecroch)
{
}

View File

@@ -28,7 +28,12 @@
BRepBlend_SurfCurvConstRadInv::BRepBlend_SurfCurvConstRadInv
(const Handle(Adaptor3d_HSurface)& S,
const Handle(Adaptor3d_HCurve)& C,
const Handle(Adaptor3d_HCurve)& Cg) : surf(S),curv(C),guide(Cg)
const Handle(Adaptor3d_HCurve)& Cg)
: surf(S),
curv(C),
guide(Cg),
ray(0.0),
choix(0)
{
}

View File

@@ -27,7 +27,11 @@
//=======================================================================
BRepBlend_SurfPointConstRadInv::BRepBlend_SurfPointConstRadInv
(const Handle(Adaptor3d_HSurface)& S,
const Handle(Adaptor3d_HCurve)& C) : surf(S), curv(C)
const Handle(Adaptor3d_HCurve)& C)
: surf(S),
curv(C),
ray(0.0),
choix(0)
{
}

View File

@@ -66,10 +66,12 @@ BRepBlend_SurfRstConstRad::BRepBlend_SurfRstConstRad
const Handle(Adaptor3d_HCurve)& CGuide):
surf(Surf), surfrst(SurfRst), rst(Rst), cons(Rst,SurfRst),
guide(CGuide), tguide(CGuide),
istangent(Standard_True), theD(0.), maxang(RealFirst()), minang(RealLast()),
distmin(RealLast()),
mySShape(BlendFunc_Rational)
{}
prmrst(0.0), istangent(Standard_True),
ray(0.0), choix(0), normtg(0.0),
theD(0.), maxang(RealFirst()), minang(RealLast()),
distmin(RealLast()), mySShape(BlendFunc_Rational)
{
}
//=======================================================================
//function : NbVariables

View File

@@ -212,8 +212,13 @@ BRepBlend_SurfRstLineBuilder::BRepBlend_SurfRstLineBuilder
const Handle(Adaptor3d_HSurface)& Surf2,
const Handle(Adaptor2d_HCurve2d)& Rst,
const Handle(Adaptor3d_TopolTool)& Domain2):
sol(1,3),surf1(Surf1), domain1(Domain1),
surf2(Surf2), rst(Rst), domain2(Domain2)
done(Standard_False), sol(1, 3), surf1(Surf1),
domain1(Domain1), surf2(Surf2), rst(Rst),
domain2(Domain2), tolesp(0.0), tolgui(0.0),
pasmax(0.0), fleche(0.0), param(0.0),
rebrou(Standard_False), iscomplete(Standard_False),
comptra(Standard_False), sens(0.0),
decrochdeb(Standard_False), decrochfin(Standard_False)
{
}