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