mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -234,7 +234,12 @@ Standard_Real CPnts_AbscissaPoint::Length(const Adaptor2d_Curve2d& C,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
CPnts_AbscissaPoint::CPnts_AbscissaPoint() : myDone(Standard_False)
|
||||
CPnts_AbscissaPoint::CPnts_AbscissaPoint()
|
||||
: myDone(Standard_False),
|
||||
myL(0.0),
|
||||
myParam(0.0),
|
||||
myUMin(0.0),
|
||||
myUMax(0.0)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -231,9 +231,21 @@ void CPnts_UniformDeflection::Perform()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
CPnts_UniformDeflection::CPnts_UniformDeflection ()
|
||||
{
|
||||
myDone = Standard_False;
|
||||
CPnts_UniformDeflection::CPnts_UniformDeflection ()
|
||||
: myDone(Standard_False),
|
||||
my3d(Standard_False),
|
||||
myFinish(Standard_False),
|
||||
myTolCur(0.0),
|
||||
myControl(Standard_False),
|
||||
myIPoint(0),
|
||||
myNbPoints(0),
|
||||
myDwmax(0.0),
|
||||
myDeflection(0.0),
|
||||
myFirstParam(0.0),
|
||||
myLastParam(0.0),
|
||||
myDu(0.0)
|
||||
{
|
||||
memset (myParams, 0, sizeof (myParams));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user