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:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -22,6 +22,9 @@
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MAT_Edge,Standard_Transient)
|
||||
|
||||
MAT_Edge::MAT_Edge()
|
||||
: theedgenumber(0),
|
||||
thedistance(0.0),
|
||||
theintersectionpoint(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
|
@@ -29,7 +29,9 @@ IMPLEMENT_STANDARD_RTTIEXT(MAT_Zone,Standard_Transient)
|
||||
// purpose :
|
||||
//========================================================================
|
||||
MAT_Zone::MAT_Zone ()
|
||||
{}
|
||||
: limited(Standard_True)
|
||||
{
|
||||
}
|
||||
|
||||
//========================================================================
|
||||
// function:
|
||||
|
Reference in New Issue
Block a user