Update modelbase-header.mustache (#15453)

Fixes warning in ModelBase.h

warning: loop variable 'jitem' creates a copy from type 'const web::json::value' [-Wrange-loop-construct]
This commit is contained in:
Super Genius
2023-05-16 02:13:59 -07:00
committed by GitHub
parent 3a172c3753
commit 87ea870f03

View File

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