Skip to content

Commit

Permalink
Do not declare destructor as default when destructor is explicitly de…
Browse files Browse the repository at this point in the history
…clared. (#732)
  • Loading branch information
Jauler authored and etherealjoy committed Aug 12, 2018
1 parent ddb0920 commit 0cd6d8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public:
~{{classname}}() override;
{{/gmockApis}}
{{^gmockApis}}
virtual ~{{classname}}() = default;
virtual ~{{classname}}();
{{/gmockApis}}

{{#operation}}
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpp-restsdk/api/PetApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PetApi

explicit PetApi( std::shared_ptr<ApiClient> apiClient );

virtual ~PetApi() = default;
virtual ~PetApi();

/// <summary>
/// Add a new pet to the store
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpp-restsdk/api/StoreApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class StoreApi

explicit StoreApi( std::shared_ptr<ApiClient> apiClient );

virtual ~StoreApi() = default;
virtual ~StoreApi();

/// <summary>
/// Delete purchase order by ID
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpp-restsdk/api/UserApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class UserApi

explicit UserApi( std::shared_ptr<ApiClient> apiClient );

virtual ~UserApi() = default;
virtual ~UserApi();

/// <summary>
/// Create user
Expand Down

0 comments on commit 0cd6d8c

Please sign in to comment.