Skip to content

Commit

Permalink
fix(c++): add missing overrides
Browse files Browse the repository at this point in the history
Reported by cppcheck

Signed-off-by: Samuel Gaist <[email protected]>
  • Loading branch information
sgaist committed Feb 8, 2024
1 parent 7879920 commit 8579ea6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions userspace/falco/grpc_request_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ class request_stream_context : public request_context_base
// Pointer to function that requests the system to start processing given requests
void (Service::AsyncService::*m_request_func)(::grpc::ServerContext*, Request*, ::grpc::ServerAsyncWriter<Response>*, ::grpc::CompletionQueue*, ::grpc::ServerCompletionQueue*, void*);

void start(server* srv);
void process(server* srv);
void end(server* srv, bool error);
void start(server* srv) override;
void process(server* srv) override;
void end(server* srv, bool error) override;

private:
std::unique_ptr<::grpc::ServerAsyncWriter<Response>> m_res_writer;
Expand All @@ -91,9 +91,9 @@ class request_context : public request_context_base
// Pointer to function that requests the system to start processing given requests
void (Service::AsyncService::*m_request_func)(::grpc::ServerContext*, Request*, ::grpc::ServerAsyncResponseWriter<Response>*, ::grpc::CompletionQueue*, ::grpc::ServerCompletionQueue*, void*);

void start(server* srv);
void process(server* srv);
void end(server* srv, bool error);
void start(server* srv) override;
void process(server* srv) override;
void end(server* srv, bool error) override;

private:
std::unique_ptr<::grpc::ServerAsyncResponseWriter<Response>> m_res_writer;
Expand All @@ -115,9 +115,9 @@ class request_bidi_context : public request_context_base
// Pointer to function that requests the system to start processing given requests
void (Service::AsyncService::*m_request_func)(::grpc::ServerContext*, ::grpc::ServerAsyncReaderWriter<Response, Request>*, ::grpc::CompletionQueue*, ::grpc::ServerCompletionQueue*, void*);

void start(server* srv);
void process(server* srv);
void end(server* srv, bool error);
void start(server* srv) override;
void process(server* srv) override;
void end(server* srv, bool error) override;

private:
std::unique_ptr<::grpc::ServerAsyncReaderWriter<Response, Request>> m_reader_writer;
Expand Down
6 changes: 3 additions & 3 deletions userspace/falco/outputs_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ namespace outputs

class output_file : public abstract_output
{
void output(const message *msg);
void output(const message *msg) override;

void cleanup();
void cleanup() override;

void reopen();
void reopen() override;

private:
void open_file();
Expand Down
2 changes: 1 addition & 1 deletion userspace/falco/outputs_grpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace outputs

class output_grpc : public abstract_output
{
void output(const message *msg);
void output(const message *msg) override;
};

} // namespace outputs
Expand Down
6 changes: 3 additions & 3 deletions userspace/falco/outputs_program.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ namespace outputs

class output_program : public abstract_output
{
void output(const message *msg);
void output(const message *msg) override;

void cleanup();
void cleanup() override;

void reopen();
void reopen() override;

private:
void open_pfile();
Expand Down
4 changes: 2 additions & 2 deletions userspace/falco/outputs_stdout.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ namespace outputs

class output_stdout : public abstract_output
{
void output(const message *msg);
void output(const message *msg) override;

void cleanup();
void cleanup() override;
};

} // namespace outputs
Expand Down
2 changes: 1 addition & 1 deletion userspace/falco/outputs_syslog.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace outputs

class output_syslog : public abstract_output
{
void output(const message *msg);
void output(const message *msg) override;
};

} // namespace outputs
Expand Down

0 comments on commit 8579ea6

Please sign in to comment.