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

@@ -34,6 +34,19 @@ class HLRAlgo_BiPoint
public:
struct IndicesT
{
IndicesT()
: ShapeIndex(-1),
FaceConex1(0),
Face1Pt1(0),
Face1Pt2(0),
FaceConex2(0),
Face2Pt1(0),
Face2Pt2(0),
MinSeg(0),
MaxSeg(0),
SegFlags(0)
{
}
Standard_Integer ShapeIndex;
Standard_Integer FaceConex1;
Standard_Integer Face1Pt1;

View File

@@ -27,7 +27,18 @@
//purpose :
//=======================================================================
HLRAlgo_EdgeIterator::HLRAlgo_EdgeIterator ()
{}
: myNbVis(0),
myNbHid(0),
EVis(NULL),
EHid(NULL),
iVis(0),
iHid(0),
myHidStart(0.0),
myHidEnd(0.0),
myHidTolStart(0.0),
myHidTolEnd(0.0)
{
}
//=======================================================================
//function : InitHidden

View File

@@ -22,7 +22,13 @@
//purpose :
//=======================================================================
HLRAlgo_Intersection::HLRAlgo_Intersection()
{}
: mySegIndex(0),
myIndex(0),
myLevel(0),
myParam(0.0),
myToler(0.0)
{
}
//=======================================================================
//function : HLRAlgo_Intersection

View File

@@ -39,6 +39,9 @@ IMPLEMENT_STANDARD_RTTIEXT(HLRAlgo_PolyAlgo,Standard_Transient)
//=======================================================================
HLRAlgo_PolyAlgo::HLRAlgo_PolyAlgo ()
: myNbrShell(0),
myCurShell(0),
myFound(Standard_False)
{
myTriangle.TolParam = 0.00000001;
myTriangle.TolAng = 0.0001;

View File

@@ -43,6 +43,14 @@ class HLRAlgo_PolyData : public Standard_Transient
public:
struct FaceIndices
{
//! The default constructor.
FaceIndices()
: Index(0),
Min(0),
Max(0)
{
}
Standard_Integer Index, Min, Max;
};
@@ -58,6 +66,12 @@ public:
//! The default constructor.
Box()
: XMin(0.0),
YMin(0.0),
ZMin(0.0),
XMax(0.0),
YMax(0.0),
ZMax(0.0)
{
}

View File

@@ -38,6 +38,7 @@ public:
struct PlaneT
{
PlaneT() : D(0.0) {}
gp_XYZ Normal;
Standard_Real D;
};

View File

@@ -41,6 +41,12 @@ public:
struct NodeData
{
NodeData()
: PCu1(0.0),
PCu2(0.0),
Scal(0.0)
{
}
gp_XYZ Point, Normal;
gp_XY UV;
Standard_Real PCu1, PCu2, Scal;