forked from loafle/openapi-generator-original
[cpp rest-sdk] Constness (#1295)
* Improve method signatures to use const when the value won't change * Update PetStore * Change setters for non-primitive types to receive const reference parameters * Update PetStore
This commit is contained in:
committed by
sunn
parent
107467497c
commit
d80f3a6197
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.1-SNAPSHOT.
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.0-SNAPSHOT.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
@@ -35,7 +35,7 @@ web::json::value Object::toJson() const
|
||||
return m_object;
|
||||
}
|
||||
|
||||
void Object::fromJson(web::json::value& val)
|
||||
void Object::fromJson(const web::json::value& val)
|
||||
{
|
||||
if (val.is_object())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user