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:
@@ -46,6 +46,13 @@ class StdLPersistent_Collection
|
||||
class booleanArrayBase : public Base
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
booleanArrayBase()
|
||||
: myLower(0),
|
||||
myUpper(0)
|
||||
{
|
||||
}
|
||||
|
||||
//! Read persistent data from a file.
|
||||
virtual void Read (StdObjMgt_ReadData& theReadData)
|
||||
{
|
||||
@@ -116,6 +123,12 @@ class StdLPersistent_Collection
|
||||
class instance_1 : public Instance
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
instance_1()
|
||||
: myDelta(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//! Read persistent data from a file.
|
||||
Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData);
|
||||
|
||||
|
@@ -24,6 +24,11 @@ class TDF_Data;
|
||||
class StdLPersistent_Data : public StdObjMgt_Persistent
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
StdLPersistent_Data()
|
||||
: myVersion(0)
|
||||
{
|
||||
}
|
||||
//! Read persistent data from a file.
|
||||
Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData);
|
||||
//! Write persistent data to a file.
|
||||
|
@@ -24,6 +24,11 @@
|
||||
class StdLPersistent_Function : public StdObjMgt_Attribute<TFunction_Function>
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
StdLPersistent_Function()
|
||||
: myFailure(0)
|
||||
{
|
||||
}
|
||||
//! Read persistent data from a file.
|
||||
inline void Read (StdObjMgt_ReadData& theReadData)
|
||||
{ theReadData >> myDriverGUID >> myFailure; }
|
||||
|
@@ -23,6 +23,12 @@
|
||||
class StdLPersistent_Real : public StdObjMgt_Attribute<TDataStd_Real>
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
StdLPersistent_Real()
|
||||
: myValue(0.0),
|
||||
myDimension(0)
|
||||
{
|
||||
}
|
||||
//! Read persistent data from a file.
|
||||
inline void Read (StdObjMgt_ReadData& theReadData)
|
||||
{ theReadData >> myValue >> myDimension; }
|
||||
|
@@ -24,6 +24,11 @@
|
||||
class StdLPersistent_Variable : public StdObjMgt_Attribute<TDataStd_Variable>
|
||||
{
|
||||
public:
|
||||
//! Empty constructor.
|
||||
StdLPersistent_Variable()
|
||||
: myIsConstant(Standard_False)
|
||||
{
|
||||
}
|
||||
//! Read persistent data from a file.
|
||||
inline void Read (StdObjMgt_ReadData& theReadData)
|
||||
{ theReadData >> myIsConstant >> myUnit; }
|
||||
|
Reference in New Issue
Block a user