update ConfigIni::Save
This commit is contained in:
parent
a62f1f4d2d
commit
7f902e3343
|
|
@ -158,6 +158,9 @@ bool ConfigIni::Save(std::ostream& os)
|
|||
std::sort(keys.begin(), keys.end());
|
||||
|
||||
// Output to ini
|
||||
std::ostream::sentry ok(os);
|
||||
if (ok)
|
||||
{
|
||||
for (const auto& key : keys)
|
||||
{
|
||||
os << '[' << key << ']' << std::endl;
|
||||
|
|
@ -167,7 +170,8 @@ bool ConfigIni::Save(std::ostream& os)
|
|||
}
|
||||
os << std::endl;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return !os.fail();
|
||||
}
|
||||
|
||||
ConfigIni::SectionMap ConfigIni::GetSectionMap() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue