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