0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis
[occt.git] / src / StdLPersistent / StdLPersistent_Real.hxx
index 4b6dfe6..e1a0c24 100644 (file)
 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; }