From 0d1f562d1353d70719c4dc094fc5662732004ae7 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 16 May 2023 17:20:46 +0800 Subject: [PATCH] update c++ samples --- .../client/include/CppRestPetstoreClient/ModelBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h b/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h index 327dc5c0be2..d05468e43b9 100644 --- a/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h +++ b/samples/client/petstore/cpp-restsdk/client/include/CppRestPetstoreClient/ModelBase.h @@ -244,7 +244,7 @@ bool ModelBase::fromJson( const web::json::value& val, std::vector &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);