Skip to content

Commit ff780fa

Browse files
committed
removed model initialisation
1 parent e3d118a commit ff780fa

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

modules/openapi-generator/src/main/resources/cpp-restbed-server/api-source.mustache

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ void {{classname}}::stopService() {
4848
std::bind(&{{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::{{httpMethod}}_method_handler, this,
4949
std::placeholders::_1));
5050
{{/vendorExtensions.x-codegen-otherMethods}}
51-
52-
{{#allParams}}{{#defaultValue}}{{^isListContainer}}{{paramName}} = {{{defaultValue}}};
53-
{{/isListContainer}}{{/defaultValue}}{{^defaultValue}}{{#isModel}}{{paramName}} = std::make_shared<{{baseType}}>();
54-
{{/isModel}}{{/defaultValue}}{{/allParams}}
5551
}
5652

5753
{{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource::~{{classname}}{{vendorExtensions.x-codegen-resourceName}}Resource()

0 commit comments

Comments
 (0)