0031035: Coding - uninitialized class fields reported by Visual Studio Code Analysis
[occt.git] / src / StdLPersistent / StdLPersistent_Data.hxx
index 4556436..48cca06 100644 (file)
@@ -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.