mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -28,8 +28,10 @@
|
||||
//purpose : Initialize for a deferred interference.
|
||||
//=======================================================================
|
||||
Intf_Interference::Intf_Interference (const Standard_Boolean Self)
|
||||
: SelfIntf(Self)
|
||||
{}
|
||||
: SelfIntf(Self),
|
||||
Tolerance(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -40,7 +40,14 @@
|
||||
//=======================================================================
|
||||
Intf_Tool::Intf_Tool()
|
||||
: nbSeg(0)
|
||||
{}
|
||||
{
|
||||
memset (beginOnCurve, 0, sizeof (beginOnCurve));
|
||||
memset (bord, 0, sizeof (bord));
|
||||
memset (xint, 0, sizeof (xint));
|
||||
memset (yint, 0, sizeof (yint));
|
||||
memset (zint, 0, sizeof (zint));
|
||||
memset (parint, 0, sizeof (parint));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Lin2dBox
|
||||
|
Reference in New Issue
Block a user