From 668b1496477ec2e432b07330ed10dc6205ee2893 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 1 May 2020 13:58:44 +0200 Subject: [PATCH] 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. --- io/inifile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/inifile.h b/io/inifile.h index 997fd07..c3e360f 100644 --- a/io/inifile.h +++ b/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; struct Section {