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

@@ -23,7 +23,13 @@
IMPLEMENT_STANDARD_RTTIEXT(FEmTool_ElementaryCriterion,Standard_Transient)
void FEmTool_ElementaryCriterion::Set(const Handle(TColStd_HArray2OfReal)& Coeff)
FEmTool_ElementaryCriterion::FEmTool_ElementaryCriterion()
: myFirst(0.0),
myLast(0.0)
{
}
void FEmTool_ElementaryCriterion::Set(const Handle(TColStd_HArray2OfReal)& Coeff)
{
myCoeff = Coeff;
}

View File

@@ -39,7 +39,8 @@ class FEmTool_ElementaryCriterion : public Standard_Transient
{
public:
//! Empty constructor
Standard_EXPORT FEmTool_ElementaryCriterion();
//! Set the coefficient of the Element (the Curve)
Standard_EXPORT void Set (const Handle(TColStd_HArray2OfReal)& Coeff);