From 78110fc89c4fd91c81a0e00b1a2eea4f1dea557c Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Mon, 10 Dec 2018 23:10:22 +0100 Subject: [PATCH] Apply clang-tidy modernize-use-override (#182) Used clang-tidy 7.0 with the command: run-clang-tidy.py \ -header-filter='boost\/gil\/.*' -checks='-*,modernize-use-override' -fix --- .clang-tidy | 2 +- test/image.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index be2ea4419..86e69814d 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,5 @@ --- -Checks: '-*,modernize-use-nullptr*' +Checks: '-*,modernize-use-nullptr,modernize-use-override' WarningsAsErrors: '' HeaderFilterRegex: 'boost\/gil\/.*' AnalyzeTemporaryDtors: false diff --git a/test/image.cpp b/test/image.cpp index a2457de98..feb8c088b 100644 --- a/test/image.cpp +++ b/test/image.cpp @@ -389,8 +389,8 @@ public: checksum_image_test(const char* filename) : _filename(filename) {} private: const char* _filename; - virtual void initialize(); - virtual void check_view_impl(const rgb8c_view_t& v, const string& name); + void initialize() override; + void check_view_impl(const rgb8c_view_t& v, const string& name) override; }; // Load the checksums from the reference file and create the start image @@ -444,8 +444,8 @@ public: checksum_image_generate(const char* filename) : _filename(filename) {} private: const char* _filename; - virtual void check_view_impl(const rgb8c_view_t& img_view, const string& name); - virtual void finalize(); + void check_view_impl(const rgb8c_view_t& img_view, const string& name) override; + void finalize() override; }; // Add the checksum of the given view to the map of checksums