mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -119,6 +119,8 @@ ExtremaExtElC_TrigonometricRoots::
|
||||
const Standard_Real Cte,
|
||||
const Standard_Real Binf,
|
||||
const Standard_Real Bsup)
|
||||
: NbRoots(0),
|
||||
infinite_roots(Standard_False)
|
||||
{
|
||||
Standard_Integer i, nbessai;
|
||||
Standard_Real cc ,sc, c, s, cte;
|
||||
@@ -232,10 +234,9 @@ Extrema_ExtElC::Extrema_ExtElC ()
|
||||
myDone = Standard_False;
|
||||
myIsPar = Standard_False;
|
||||
myNbExt = 0;
|
||||
|
||||
for (Standard_Integer i = 0; i < 6; i++)
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[i] = RealLast();
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
@@ -294,6 +295,10 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Lin& theC1,
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
myIsPar = Standard_False;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
const gp_Dir &aD1 = theC1.Position().Direction(),
|
||||
&aD2 = theC2.Position().Direction();
|
||||
@@ -460,6 +465,10 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Lin& C1,
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
if (PlanarLineCircleExtrema(C1, C2))
|
||||
{
|
||||
@@ -631,6 +640,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 the reference of the ellipse ...
|
||||
gp_Dir D = C1.Direction();
|
||||
@@ -744,6 +757,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the hyperbola...
|
||||
gp_Dir D = C1.Direction();
|
||||
@@ -839,6 +856,10 @@ Method:
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
|
||||
// Calculate T1 in the reference of the parabola...
|
||||
gp_Dir D = C1.Direction();
|
||||
@@ -900,6 +921,10 @@ Extrema_ExtElC::Extrema_ExtElC (const gp_Circ& C1,
|
||||
myIsPar = Standard_False;
|
||||
myDone = Standard_False;
|
||||
myNbExt = 0;
|
||||
for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
|
||||
{
|
||||
mySqDist[anIdx] = RealLast();
|
||||
}
|
||||
//
|
||||
aTolA=Precision::Angular();
|
||||
aTolD=Precision::Confusion();
|
||||
|
Reference in New Issue
Block a user