IniFile: Initialize with default value if key does not exist.

This commit is contained in:
Jules Blok 2016-01-13 22:51:53 +01:00
parent 8ee93fc4fa
commit 55cb6675cc

View File

@ -123,6 +123,8 @@ public:
{
if (Exists(sectionName, key))
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
else
*value = defaultValue;
return false;
}