Change in JSON::Object::set(key,value) behavior in 1.6.1 #933

This commit is contained in:
Aleksandar Fabijanic 2015-09-10 22:12:34 -05:00
parent 622d9d4c6c
commit fee347ec6a

View File

@ -117,6 +117,7 @@ const std::string& Object::getKey(KeyPtrList::const_iterator& iter) const
void Object::set(const std::string& key, const Dynamic::Var& value)
{
std::pair<ValueMap::iterator, bool> ret = _values.insert(ValueMap::value_type(key, value));
if (!ret.second) _values[key] = value;
if (_preserveInsOrder)
{
KeyPtrList::iterator it = _keys.begin();