Skip to content

Commit

Permalink
Fix override usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLanin committed Aug 23, 2020
1 parent c2a6ea1 commit 0999ab5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 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);

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

private:
FILE* m_stream;
Expand Down
10 changes: 5 additions & 5 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);

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

private:
const std::string m_directory;
Expand Down
10 changes: 5 additions & 5 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);

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

private:
Context& m_ctx;
Expand Down
2 changes: 1 addition & 1 deletion src/third_party/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
#endif

#ifndef FMT_OVERRIDE
# if FMT_HAS_FEATURE(cxx_override) || \
# if FMT_HAS_FEATURE(cxx_override_control) || \
(FMT_GCC_VERSION >= 408 && FMT_HAS_GXX_CXX11) || FMT_MSC_VER >= 1900
# define FMT_OVERRIDE override
# else
Expand Down

0 comments on commit 0999ab5

Please sign in to comment.