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 {
|
class {{declspec}} {{classname}} : public ApiBase {
|
||||||
public:
|
public:
|
||||||
explicit {{classname}}(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
explicit {{classname}}(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||||
virtual ~{{classname}}() = default;
|
~{{classname}}() override = default;
|
||||||
void init();
|
void init() override;
|
||||||
|
|
||||||
static const std::string base;
|
static const std::string base;
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ namespace org::openapitools::server::api
|
|||||||
class PetApi : public ApiBase {
|
class PetApi : public ApiBase {
|
||||||
public:
|
public:
|
||||||
explicit PetApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
explicit PetApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||||
virtual ~PetApi() = default;
|
~PetApi() override = default;
|
||||||
void init();
|
void init() override;
|
||||||
|
|
||||||
static const std::string base;
|
static const std::string base;
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ namespace org::openapitools::server::api
|
|||||||
class StoreApi : public ApiBase {
|
class StoreApi : public ApiBase {
|
||||||
public:
|
public:
|
||||||
explicit StoreApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
explicit StoreApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||||
virtual ~StoreApi() = default;
|
~StoreApi() override = default;
|
||||||
void init();
|
void init() override;
|
||||||
|
|
||||||
static const std::string base;
|
static const std::string base;
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ namespace org::openapitools::server::api
|
|||||||
class UserApi : public ApiBase {
|
class UserApi : public ApiBase {
|
||||||
public:
|
public:
|
||||||
explicit UserApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
explicit UserApi(const std::shared_ptr<Pistache::Rest::Router>& rtr);
|
||||||
virtual ~UserApi() = default;
|
~UserApi() override = default;
|
||||||
void init();
|
void init() override;
|
||||||
|
|
||||||
static const std::string base;
|
static const std::string base;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user