mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -28,8 +28,10 @@
|
||||
Contap_ArcFunction::Contap_ArcFunction ():
|
||||
myMean(1.),
|
||||
myType(Contap_ContourStd),
|
||||
myDir(0.,0.,1.)
|
||||
{}
|
||||
myDir(0.,0.,1.),
|
||||
myCosAng(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void Contap_ArcFunction::Set(const Handle(Adaptor3d_HSurface)& S)
|
||||
|
@@ -30,7 +30,13 @@
|
||||
|
||||
static const Standard_Real Tolpetit = 1.e-8;
|
||||
|
||||
Contap_ContAna::Contap_ContAna (): done(Standard_False) {}
|
||||
Contap_ContAna::Contap_ContAna ()
|
||||
: done(Standard_False),
|
||||
nbSol(0),
|
||||
typL(GeomAbs_OtherCurve),
|
||||
prm(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
void Contap_ContAna::Perform (const gp_Sphere& S,
|
||||
const gp_Dir& D)
|
||||
|
@@ -23,13 +23,18 @@
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
Contap_Point::Contap_Point ():
|
||||
onarc(Standard_False),isvtx(Standard_False),ismult(Standard_False),
|
||||
myInternal(Standard_False)
|
||||
{}
|
||||
uparam(0.0), vparam(0.0), paraline(0.0),
|
||||
onarc(Standard_False), prmarc(0.0), isvtx(Standard_False),
|
||||
ismult(Standard_False), myInternal(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
Contap_Point::Contap_Point (const gp_Pnt& Pt,
|
||||
const Standard_Real U,
|
||||
const Standard_Real V):
|
||||
pt(Pt),uparam(U),vparam(V),onarc(Standard_False),isvtx(Standard_False),
|
||||
ismult(Standard_False),myInternal(Standard_False)
|
||||
{}
|
||||
pt(Pt),uparam(U),vparam(V),
|
||||
paraline(0.0), onarc(Standard_False),
|
||||
prmarc(0.0), isvtx(Standard_False),
|
||||
ismult(Standard_False), myInternal(Standard_False)
|
||||
{
|
||||
}
|
@@ -32,11 +32,19 @@ Contap_SurfFunction::Contap_SurfFunction ():
|
||||
myMean(1.),
|
||||
myType(Contap_ContourStd),
|
||||
myDir(0.,0.,1.),
|
||||
myAng(0.0),
|
||||
myCosAng(0.), // PI/2 - Angle de depouille
|
||||
tol(1.e-6),
|
||||
valf(0.0),
|
||||
Usol(0.0),
|
||||
Vsol(0.0),
|
||||
Fpu(0.0),
|
||||
Fpv(0.0),
|
||||
tangent(Standard_False),
|
||||
computed(Standard_False),
|
||||
derived(Standard_False)
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
void Contap_SurfFunction::Set(const Handle(Adaptor3d_HSurface)& S)
|
||||
{
|
||||
|
Reference in New Issue
Block a user