Return actual instead of default value in IniReader::GetString

This commit is contained in:
Michał Janiszewski 2017-02-24 23:23:20 +01:00
parent 5f43c37ca0
commit 3b3f0b2e6b
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ public:
std::string GetString(const std::string &name, const std::string &defaultValue) const override
{
std::string result;
if (TryGetString(name, &result))
if (!TryGetString(name, &result))
{
result = defaultValue;
}