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:
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user