fixed GH #410: Bug in JSON::Object.stringify() in 1.5.2

This commit is contained in:
Alex Fabijanic
2014-04-28 21:43:57 -05:00
parent f19d1cb041
commit 4d366250e1
4 changed files with 18 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ const std::string& Object::getKey(KeyPtrList::const_iterator& iter) const
ValueMap::const_iterator end = _values.end();
for (; it != end; ++it)
{
if (it->second == **iter) return it->first;
if (&it->second == *iter) return it->first;
}
throw NotFoundException((*iter)->convert<std::string>());