forked from loafle/openapi-generator-original
[C++][Pistache] Add missing 'override' on virtual methods (#15469)
This is following #15279 Marking those methods 'override' should avoid producing '-Winconsistent-missing-override' warnings or similar.
This commit is contained in:
parent
48d257b5c9
commit
3a172c3753
@ -27,8 +27,8 @@ namespace {{apiNamespace}}
|
||||
class {{declspec}} {{classname}} : public ApiBase {
|
||||
public:
|
||||
explicit {{classname}}(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||
virtual ~{{classname}}() = default;
|
||||
void init();
|
||||
~{{classname}}() override = default;
|
||||
void init() override;
|
||||
|
||||
static const std::string base;
|
||||
|
||||
|
@ -38,8 +38,8 @@ namespace org::openapitools::server::api
|
||||
class PetApi : public ApiBase {
|
||||
public:
|
||||
explicit PetApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||
virtual ~PetApi() = default;
|
||||
void init();
|
||||
~PetApi() override = default;
|
||||
void init() override;
|
||||
|
||||
static const std::string base;
|
||||
|
||||
|
@ -38,8 +38,8 @@ namespace org::openapitools::server::api
|
||||
class StoreApi : public ApiBase {
|
||||
public:
|
||||
explicit StoreApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||
virtual ~StoreApi() = default;
|
||||
void init();
|
||||
~StoreApi() override = default;
|
||||
void init() override;
|
||||
|
||||
static const std::string base;
|
||||
|
||||
|
@ -38,8 +38,8 @@ namespace org::openapitools::server::api
|
||||
class UserApi : public ApiBase {
|
||||
public:
|
||||
explicit UserApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||
virtual ~UserApi() = default;
|
||||
void init();
|
||||
~UserApi() override = default;
|
||||
void init() override;
|
||||
|
||||
static const std::string base;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user