From 1cb77f6baf2063a318ba03da1965ba964425dfb0 Mon Sep 17 00:00:00 2001 From: Alexander Lanin Date: Wed, 26 Aug 2020 22:10:25 +0200 Subject: [PATCH] Change 'final' to 'override' --- src/ResultDumper.hpp | 8 ++++---- src/ResultExtractor.hpp | 8 ++++---- src/ResultRetriever.hpp | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ResultDumper.hpp b/src/ResultDumper.hpp index 23ad4598c9..d5fa770976 100644 --- a/src/ResultDumper.hpp +++ b/src/ResultDumper.hpp @@ -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 raw_file) final; - void on_entry_data(const uint8_t* data, size_t size) final; - void on_entry_end() final; + nonstd::optional raw_file) override; + void on_entry_data(const uint8_t* data, size_t size) override; + void on_entry_end() override; private: FILE* m_stream; diff --git a/src/ResultExtractor.hpp b/src/ResultExtractor.hpp index 9c51cfb981..c474747624 100644 --- a/src/ResultExtractor.hpp +++ b/src/ResultExtractor.hpp @@ -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 raw_file) final; - void on_entry_data(const uint8_t* data, size_t size) final; - void on_entry_end() final; + nonstd::optional 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; diff --git a/src/ResultRetriever.hpp b/src/ResultRetriever.hpp index d2f8698a8f..b3ac48896b 100644 --- a/src/ResultRetriever.hpp +++ b/src/ResultRetriever.hpp @@ -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 raw_file) final; - void on_entry_data(const uint8_t* data, size_t size) final; - void on_entry_end() final; + nonstd::optional raw_file) override; + void on_entry_data(const uint8_t* data, size_t size) override; + void on_entry_end() override; private: Context& m_ctx;