update c++ samples

This commit is contained in:
William Cheng 2023-05-16 17:20:46 +08:00
parent 87ea870f03
commit 0d1f562d13

View File

@ -244,7 +244,7 @@ bool ModelBase::fromJson( const web::json::value& val, std::vector<T> &outVal )
bool ok = true; bool ok = true;
if (val.is_array()) if (val.is_array())
{ {
for (const auto jitem : val.as_array()) for (const web::json::value & jitem : val.as_array())
{ {
T item; T item;
ok &= fromJson(jitem, item); ok &= fromJson(jitem, item);