Base: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 12:10:14 +02:00
committed by wwmayer
parent a60c9c2cf1
commit 4fb07bcfd6
18 changed files with 112 additions and 102 deletions

View File

@@ -214,11 +214,11 @@ public:
//@}
/// Schema Version of the document
int DocumentSchema;
int DocumentSchema{0};
/// Version of FreeCAD that wrote this document
std::string ProgramVersion;
/// Version of the file format
int FileVersion;
int FileVersion{0};
/// sets simultaneously the global and local PartialRestore bits
void setPartialRestore(bool on);
@@ -278,10 +278,10 @@ protected:
//@}
int Level;
int Level{0};
std::string LocalName;
std::string Characters;
unsigned int CharacterCount;
unsigned int CharacterCount{0};
std::streamsize CharacterOffset{-1};
std::map<std::string,std::string> AttrMap;
@@ -297,14 +297,14 @@ protected:
EndElement,
StartCDATA,
EndCDATA
} ReadType;
} ReadType{None};
FileInfo _File;
XERCES_CPP_NAMESPACE_QUALIFIER SAX2XMLReader* parser;
XERCES_CPP_NAMESPACE_QUALIFIER XMLPScanToken token;
bool _valid;
bool _verbose;
bool _valid{false};
bool _verbose{true};
std::vector<std::string> FileNames;