Stop using deprecated jsoncpp method

Gets rid of this warning:

  error: 'memberName' is deprecated: Use `key = name();` instead. [-Werror,-Wdeprecated-declarations]
This commit is contained in:
Martin Natano
2022-06-05 12:04:37 +02:00
parent 3aebf60410
commit 228920e7dc
+1 -1
View File
@@ -201,7 +201,7 @@ namespace JsonUtil
static void DeserializeStringToObjectMap(M &m, F fnToValue(E e), const Json::Value &root)
{
for( Json::Value::const_iterator iter = root.begin(); iter != root.end(); iter++ )
m[ fnToValue(iter.memberName()) ].Deserialize( *iter );
m[ fnToValue(iter.name()) ].Deserialize( *iter );
}
// Serialize a map that has a non-string key type