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:
@@ -30,6 +30,7 @@ IntImp_Int2S::IntImp_Int2S(const ThePSurface& surf1,
|
||||
const Standard_Real TolTangency ) :
|
||||
done(Standard_True),
|
||||
empty(Standard_True),
|
||||
tangent(Standard_False),
|
||||
myZerParFunc(surf1,surf2),
|
||||
tol(TolTangency*TolTangency)
|
||||
{
|
||||
|
@@ -33,6 +33,9 @@ IntImp_IntCS::IntImp_IntCS(const Standard_Real U,
|
||||
done(Standard_True),
|
||||
empty(Standard_True),
|
||||
myFunction(F),
|
||||
w(0.0),
|
||||
u(0.0),
|
||||
v(0.0),
|
||||
tol(TolTangency*TolTangency)
|
||||
{
|
||||
if(tol<1e-13) { tol=1e-13; }
|
||||
|
@@ -26,14 +26,30 @@
|
||||
|
||||
|
||||
IntImp_ZerImpFunc::IntImp_ZerImpFunc() :
|
||||
surf(NULL),
|
||||
func(NULL),
|
||||
u(0.0),
|
||||
v(0.0),
|
||||
tol(0.0),
|
||||
valf(0.0),
|
||||
computed(Standard_False),
|
||||
tangent(Standard_False),
|
||||
tgdu(0.0),
|
||||
tgdv(0.0),
|
||||
derived(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
IntImp_ZerImpFunc::IntImp_ZerImpFunc(const ThePSurface& PS ,
|
||||
const TheISurface& IS) :
|
||||
u(0.0),
|
||||
v(0.0),
|
||||
tol(0.0),
|
||||
valf(0.0),
|
||||
computed(Standard_False),
|
||||
tangent(Standard_False),
|
||||
tgdu(0.0),
|
||||
tgdv(0.0),
|
||||
derived(Standard_False)
|
||||
{
|
||||
surf = (Standard_Address)(&PS);
|
||||
@@ -41,7 +57,15 @@ IntImp_ZerImpFunc::IntImp_ZerImpFunc(const ThePSurface& PS ,
|
||||
}
|
||||
|
||||
IntImp_ZerImpFunc::IntImp_ZerImpFunc(const TheISurface& IS) :
|
||||
surf(NULL),
|
||||
u(0.0),
|
||||
v(0.0),
|
||||
tol(0.0),
|
||||
valf(0.0),
|
||||
computed(Standard_False),
|
||||
tangent(Standard_False),
|
||||
tgdu(0.0),
|
||||
tgdv(0.0),
|
||||
derived(Standard_False)
|
||||
{
|
||||
func = (Standard_Address)(&IS);
|
||||
|
@@ -27,7 +27,11 @@
|
||||
|
||||
|
||||
IntImp_ZerParFunc::IntImp_ZerParFunc(const ThePSurface& S1 ,
|
||||
const ThePSurface& S2) {
|
||||
const ThePSurface& S2)
|
||||
: compute(Standard_False),
|
||||
tangent(Standard_False),
|
||||
paramConst(0.0)
|
||||
{
|
||||
surf1 = (Standard_Address)(&S1);
|
||||
surf2 = (Standard_Address)(&S2);
|
||||
|
||||
@@ -46,7 +50,7 @@ IntImp_ZerParFunc::IntImp_ZerParFunc(const ThePSurface& S1 ,
|
||||
|
||||
ures2 = ThePSurfaceTool::UResolution(SURF2,Precision::Confusion());
|
||||
vres2 = ThePSurfaceTool::VResolution(SURF2,Precision::Confusion());
|
||||
|
||||
memset (f, 0, sizeof (f));
|
||||
compute = Standard_False;
|
||||
tangent = Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user