From 1de7d0ed7be47080f0f436bc88cac73d0af53006 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Sun, 4 Feb 2024 12:05:05 +0900 Subject: [PATCH] Remove redundant `override` specifier from functions that are declared `final` --- fuzzing/NullOStream.h | 2 +- src/catch2/generators/catch_generator_exception.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzzing/NullOStream.h b/fuzzing/NullOStream.h index abbec09c..390ac86c 100644 --- a/fuzzing/NullOStream.h +++ b/fuzzing/NullOStream.h @@ -16,7 +16,7 @@ class NullStreambuf : public std::streambuf { char dummyBuffer[64]; protected: - virtual int overflow(int c) override final; + virtual int overflow(int c) final; }; class NullOStream final : private NullStreambuf, public std::ostream { diff --git a/src/catch2/generators/catch_generator_exception.hpp b/src/catch2/generators/catch_generator_exception.hpp index f353042e..8dffcd26 100644 --- a/src/catch2/generators/catch_generator_exception.hpp +++ b/src/catch2/generators/catch_generator_exception.hpp @@ -23,7 +23,7 @@ namespace Catch { m_msg(msg) {} - const char* what() const noexcept override final; + const char* what() const noexcept final; }; } // end namespace Catch