Skip to content

Commit

Permalink
Change 'final' to 'override'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLanin committed Aug 26, 2020
1 parent 0999ab5 commit 1cb77f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/ResultDumper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class ResultDumper : public Result::Reader::Consumer
public:
ResultDumper(FILE* stream);

void on_header(CacheEntryReader& cache_entry_reader) final;
void on_header(CacheEntryReader& cache_entry_reader) override;
void on_entry_start(uint32_t entry_number,
Result::FileType file_type,
uint64_t file_len,
nonstd::optional<std::string> raw_file) final;
void on_entry_data(const uint8_t* data, size_t size) final;
void on_entry_end() final;
nonstd::optional<std::string> raw_file) override;
void on_entry_data(const uint8_t* data, size_t size) override;
void on_entry_end() override;

private:
FILE* m_stream;
Expand Down
8 changes: 4 additions & 4 deletions src/ResultExtractor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class ResultExtractor : public Result::Reader::Consumer
public:
ResultExtractor(const std::string& directory);

void on_header(CacheEntryReader& cache_entry_reader) final;
void on_header(CacheEntryReader& cache_entry_reader) override;
void on_entry_start(uint32_t entry_number,
Result::FileType file_type,
uint64_t file_len,
nonstd::optional<std::string> raw_file) final;
void on_entry_data(const uint8_t* data, size_t size) final;
void on_entry_end() final;
nonstd::optional<std::string> raw_file) override;
void on_entry_data(const uint8_t* data, size_t size) override;
void on_entry_end() override;

private:
const std::string m_directory;
Expand Down
8 changes: 4 additions & 4 deletions src/ResultRetriever.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class ResultRetriever : public Result::Reader::Consumer
public:
ResultRetriever(Context& ctx, bool rewrite_dependency_target);

void on_header(CacheEntryReader& cache_entry_reader) final;
void on_header(CacheEntryReader& cache_entry_reader) override;
void on_entry_start(uint32_t entry_number,
Result::FileType file_type,
uint64_t file_len,
nonstd::optional<std::string> raw_file) final;
void on_entry_data(const uint8_t* data, size_t size) final;
void on_entry_end() final;
nonstd::optional<std::string> raw_file) override;
void on_entry_data(const uint8_t* data, size_t size) override;
void on_entry_end() override;

private:
Context& m_ctx;
Expand Down

0 comments on commit 1cb77f6

Please sign in to comment.