Skip to content

Commit

Permalink
Update modelbase-header.mustache (#15453)
Browse files Browse the repository at this point in the history
Fixes warning in ModelBase.h

warning: loop variable 'jitem' creates a copy from type 'const web::json::value' [-Wrange-loop-construct]
  • Loading branch information
SuperGNUS committed May 16, 2023
1 parent 3a172c3 commit 87ea870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 87ea870

Please sign in to comment.