Change JSON array access to be compatible to jsoncpp-1.7.4.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tastytea 2020-01-01 13:12:46 +01:00
parent aa5e7008b2
commit 80db08a9c6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -284,7 +284,7 @@ Json::Value Config::stringlist_to_jsonarray(const list<string> &stringlist)
for (const auto &element : stringlist)
{
static Json::ArrayIndex index{0};
jsonarray.insert(index, element);
jsonarray[index] = element;
++index;
}
return jsonarray;