Browse Source

Initialize AdvancedIniFile::Field by default with IniFileFieldFlags::HasValue

The case that there's no equal sign is rather odd so don't make it the default.
charconv v5.4.0
Martchus 2 years ago
parent
commit
668b149647
  1. 2
      io/inifile.h

2
io/inifile.h

@ -83,7 +83,7 @@ struct CPP_UTILITIES_EXPORT AdvancedIniFile {
std::string precedingCommentBlock;
std::string followingInlineComment;
std::size_t paddedKeyLength = 0;
IniFileFieldFlags flags = IniFileFieldFlags::None;
IniFileFieldFlags flags = IniFileFieldFlags::HasValue;
};
using FieldList = std::vector<Field>;
struct Section {

Loading…
Cancel
Save