0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis
[occt.git] / src / Extrema / Extrema_ExtPExtS.cxx
index 969c8b6..bd8a0ec 100644 (file)
@@ -155,6 +155,10 @@ Extrema_ExtPExtS::Extrema_ExtPExtS()
   myDone(Standard_False),
   myNbExt(0)
 {
+  for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
+  {
+    mySqDist[anIdx] = RealLast();
+  }
 }
 
 //=============================================================================
@@ -178,6 +182,10 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
   myDone(Standard_False),
   myNbExt(0)
 {
+  for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
+  {
+    mySqDist[anIdx] = RealLast();
+  }
   Initialize (theS,
               theUmin,
               theUsup,
@@ -205,6 +213,10 @@ Extrema_ExtPExtS::Extrema_ExtPExtS (const gp_Pnt&
   myDone(Standard_False),
   myNbExt(0)
 {
+  for (size_t anIdx = 0; anIdx < sizeof (mySqDist) / sizeof (mySqDist[0]); anIdx++)
+  {
+    mySqDist[anIdx] = RealLast();
+  }
   Initialize (theS,
               theS->FirstUParameter(),
               theS->LastUParameter(),