mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 02:22:57 +01:00
JSON Stringifier fails with preserve insert order #819
This commit is contained in:
parent
60b1431539
commit
3553a86d60
@ -107,7 +107,7 @@ const std::string& Object::getKey(KeyPtrList::const_iterator& iter) const
|
|||||||
ValueMap::const_iterator end = _values.end();
|
ValueMap::const_iterator end = _values.end();
|
||||||
for (; it != end; ++it)
|
for (; it != end; ++it)
|
||||||
{
|
{
|
||||||
if (&it->second == *iter) return it->first;
|
if (it->second == **iter) return it->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw NotFoundException((*iter)->convert<std::string>());
|
throw NotFoundException((*iter)->convert<std::string>());
|
||||||
|
Loading…
Reference in New Issue
Block a user