1
0
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:
mkrylova
2020-07-17 13:08:31 +03:00
committed by bugmaster
parent 078f916446
commit d533dafb56
293 changed files with 1790 additions and 304 deletions

View File

@@ -81,7 +81,12 @@ struct SplitDS
NCollection_Vector<Standard_Real> &theSplits)
: myCurve(theCurve),
mySurface(theSurface),
mySplits(theSplits)
mySplits(theSplits),
myPerMinParam(0.0),
myPerMaxParam(0.0),
myPeriodicDir(0),
myExtCC(NULL),
myExtPS(NULL)
{ }
// Assignment operator is forbidden.

View File

@@ -84,6 +84,14 @@
struct aFuncStruct
{
aFuncStruct() // Empty constructor.
: mySqProjOrtTol(0.0),
myTolU(0.0),
myTolV(0.0)
{
memset(myPeriod, 0, sizeof (myPeriod));
}
Handle(Adaptor3d_HSurface) mySurf; // Surface where to project.
Handle(Adaptor3d_HCurve) myCurve; // Curve to project.
Handle(Adaptor2d_HCurve2d) myInitCurve2d; // Initial 2dcurve projection.

View File

@@ -26,7 +26,9 @@
#include <Standard_DomainError.hxx>
#include <StdFail_NotDone.hxx>
ProjLib_PrjResolve::ProjLib_PrjResolve(const Adaptor3d_Curve& C,const Adaptor3d_Surface& S,const Standard_Integer Fix) : myFix(Fix)
ProjLib_PrjResolve::ProjLib_PrjResolve(const Adaptor3d_Curve& C,const Adaptor3d_Surface& S,const Standard_Integer Fix)
: myDone(Standard_False),
myFix(Fix)
{
if (myFix > 3 || myFix < 1) throw Standard_ConstructionError();
mySolution = gp_Pnt2d(0.,0.);

View File

@@ -147,7 +147,8 @@ private:
//=======================================================================
ProjLib_ProjectOnSurface::ProjLib_ProjectOnSurface() :
myIsDone(Standard_False)
myTolerance(0.0),
myIsDone(Standard_False)
{
}
@@ -158,7 +159,8 @@ myIsDone(Standard_False)
ProjLib_ProjectOnSurface::ProjLib_ProjectOnSurface
(const Handle(Adaptor3d_HSurface)& S ) :
myIsDone(Standard_False)
myTolerance(0.0),
myIsDone(Standard_False)
{
mySurface = S;
}

View File

@@ -38,6 +38,7 @@
//purpose :
//=======================================================================
ProjLib_Projector::ProjLib_Projector()
: myIsPeriodic(Standard_False)
{
isDone = Standard_False;
myType = GeomAbs_BSplineCurve;