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

@@ -30,7 +30,8 @@ IMPLEMENT_STANDARD_RTTIEXT(MAT_BasicElt,Standard_Transient)
MAT_BasicElt::MAT_BasicElt(const Standard_Integer anInteger)
: startLeftArc (0),
endLeftArc (0),
index(anInteger)
index(anInteger),
geomIndex(0)
{
}

View File

@@ -22,6 +22,9 @@
IMPLEMENT_STANDARD_RTTIEXT(MAT_Edge,Standard_Transient)
MAT_Edge::MAT_Edge()
: theedgenumber(0),
thedistance(0.0),
theintersectionpoint(0)
{
}

View File

@@ -43,7 +43,13 @@ IMPLEMENT_STANDARD_RTTIEXT(MAT_Graph,Standard_Transient)
// =====================================================================
// Constructeur vide.
// =====================================================================
MAT_Graph::MAT_Graph() {}
MAT_Graph::MAT_Graph()
: numberOfArcs(0),
numberOfNodes(0),
numberOfBasicElts(0),
numberOfInfiniteNodes(0)
{
}
// =====================================================================
// function : Perform

View File

@@ -30,7 +30,8 @@ IMPLEMENT_STANDARD_RTTIEXT(MAT_Node,Standard_Transient)
MAT_Node::MAT_Node(const Standard_Integer GeomIndex,
const Handle(MAT_Arc)& LinkedArc,
const Standard_Real Distance)
: geomIndex(GeomIndex),
: nodeIndex(0),
geomIndex(GeomIndex),
distance(Distance)
{
aLinkedArc = LinkedArc.get();

View File

@@ -29,7 +29,9 @@ IMPLEMENT_STANDARD_RTTIEXT(MAT_Zone,Standard_Transient)
// purpose :
//========================================================================
MAT_Zone::MAT_Zone ()
{}
: limited(Standard_True)
{
}
//========================================================================
// function: