Fixed minor compiler error and warning (#5762)

* 5762 Fixed minor compiler error and warning

* 5762 Regenerated cpprest petstore client
This commit is contained in:
Ralph Langendam 2017-06-07 12:37:45 +02:00 committed by wing328
parent 9f81aa4bfc
commit ec19e8f407
5 changed files with 5 additions and 4 deletions

View File

@ -122,7 +122,7 @@ pplx::task<web::http::http_response> ApiClient::callApi(
web::json::value body_data = web::json::value::object();
for (auto& kvp : formParams)
{
body_data[U(kvp.first)] = ModelBase::toJson(kvp.second);
body_data[kvp.first] = ModelBase::toJson(kvp.second);
}
request.set_body(body_data);
}

View File

@ -273,7 +273,7 @@ int32_t ModelBase::int32_tFromJson(web::json::value& val)
}
float ModelBase::floatFromJson(web::json::value& val)
{
return val.as_double();
return static_cast<float>(val.as_double());
}
utility::string_t ModelBase::stringFromJson(web::json::value& val)
{

View File

@ -0,0 +1 @@
2.2.3-SNAPSHOT

View File

@ -134,7 +134,7 @@ pplx::task<web::http::http_response> ApiClient::callApi(
web::json::value body_data = web::json::value::object();
for (auto& kvp : formParams)
{
body_data[U(kvp.first)] = ModelBase::toJson(kvp.second);
body_data[kvp.first] = ModelBase::toJson(kvp.second);
}
request.set_body(body_data);
}

View File

@ -285,7 +285,7 @@ int32_t ModelBase::int32_tFromJson(web::json::value& val)
}
float ModelBase::floatFromJson(web::json::value& val)
{
return val.as_double();
return static_cast<float>(val.as_double());
}
utility::string_t ModelBase::stringFromJson(web::json::value& val)
{