YAMLParser - fix SimpleKey uninitialized variable warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-09 22:11:50 +00:00
parent 58236e6fa6
commit b0d0928241
1 changed files with 4 additions and 4 deletions

View File

@ -178,10 +178,10 @@ namespace {
/// others) before the SimpleKey's Tok. /// others) before the SimpleKey's Tok.
struct SimpleKey { struct SimpleKey {
TokenQueueT::iterator Tok; TokenQueueT::iterator Tok;
unsigned Column; unsigned Column = 0;
unsigned Line; unsigned Line = 0;
unsigned FlowLevel; unsigned FlowLevel = 0;
bool IsRequired; bool IsRequired = false;
bool operator ==(const SimpleKey &Other) { bool operator ==(const SimpleKey &Other) {
return Tok == Other.Tok; return Tok == Other.Tok;