diff options
Diffstat (limited to 'lib/inifile/iniFile.cpp')
-rw-r--r-- | lib/inifile/iniFile.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp index da523e783..5ca6f6618 100644 --- a/lib/inifile/iniFile.cpp +++ b/lib/inifile/iniFile.cpp @@ -384,15 +384,7 @@ bool cIniFile::SetValue(const AString & keyname, const AString & valuename, cons } else { - if (!create) - { - keys[keyID].values[valueID] = value; - } - else - { - keys[keyID].names.resize(keys[keyID].names.size() + 1, valuename); - keys[keyID].values.resize(keys[keyID].values.size() + 1, value); - } + keys[keyID].values[valueID] = value; } return true; |