[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:
Sylvain Joubert 2023-05-16 11:13:34 +02:00 committed by GitHub
parent 48d257b5c9
commit 3a172c3753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;