Change JSON array access to be compatible to jsoncpp-1.7.4.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aa5e7008b2
commit
80db08a9c6
|
@ -284,7 +284,7 @@ Json::Value Config::stringlist_to_jsonarray(const list<string> &stringlist)
|
||||||
for (const auto &element : stringlist)
|
for (const auto &element : stringlist)
|
||||||
{
|
{
|
||||||
static Json::ArrayIndex index{0};
|
static Json::ArrayIndex index{0};
|
||||||
jsonarray.insert(index, element);
|
jsonarray[index] = element;
|
||||||
++index;
|
++index;
|
||||||
}
|
}
|
||||||
return jsonarray;
|
return jsonarray;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user