Fix link errors in Windows

This commit is contained in:
nsubiron 2017-05-15 13:34:26 +01:00
parent b546d86e6b
commit 153c736a06
1 changed files with 7 additions and 5 deletions

View File

@ -41,16 +41,18 @@ public:
// ===========================================================================
/// @{
void AddSectionIfMissing(const FString &Section)
{
ConfigFile.FindOrAddSection(Section);
}
bool HasSection(const FString &Section) const
{
return (ConfigFile.Num() > 0) && (ConfigFile.Find(Section) != nullptr);
}
void AddSectionIfMissing(const FString &Section)
{
if (!HasSection(Section)) {
ConfigFile.Add(Section, FConfigSection());
}
}
/// Write contents to disk.
bool Write(const FString &Filename)
{