uninitialized variables-persistence

This commit is contained in:
AzaezelX 2020-05-11 15:12:50 -05:00
parent a46bf3d7e5
commit b6c33bdd2b
3 changed files with 4 additions and 3 deletions

View file

@ -38,7 +38,7 @@
class TamlJSONParser : public TamlParser
{
public:
TamlJSONParser() {}
TamlJSONParser() :mDocumentDirty(false) {}
virtual ~TamlJSONParser() {}
/// Whether the parser can change a property or not.
@ -54,4 +54,4 @@ private:
bool mDocumentDirty;
};
#endif // _TAML_JSONPARSER_H_
#endif // _TAML_JSONPARSER_H_

View file

@ -140,6 +140,7 @@ ImplementEnumType(_TamlFormatMode,
// The string-table-entries are set to string literals below because Taml is used in a static scope and the string-table cannot currently be used like that.
Taml::Taml() :
mMasterNodeId(0),
mFormatMode(XmlFormat),
mJSONStrict(true),
mBinaryCompression(true),

View file

@ -38,7 +38,7 @@
class TamlXmlParser : public TamlParser
{
public:
TamlXmlParser() {}
TamlXmlParser() :mDocumentDirty(false) {}
virtual ~TamlXmlParser() {}
/// Whether the parser can change a property or not.