From e51dcdcc595371828de2b1d28985e8d8c1895345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 7 Apr 2026 11:07:59 +0200 Subject: [PATCH] Mark TestInvoker{AsMethod,Fixture} as final --- src/catch2/internal/catch_test_registry.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch2/internal/catch_test_registry.hpp b/src/catch2/internal/catch_test_registry.hpp index 5c3a226d..593593ba 100644 --- a/src/catch2/internal/catch_test_registry.hpp +++ b/src/catch2/internal/catch_test_registry.hpp @@ -29,7 +29,7 @@ namespace Catch { template -class TestInvokerAsMethod : public ITestInvoker { +class TestInvokerAsMethod final : public ITestInvoker { void (C::*m_testAsMethod)(); public: constexpr TestInvokerAsMethod( void ( C::*testAsMethod )() ) noexcept: @@ -49,7 +49,7 @@ Detail::unique_ptr makeTestInvoker( void (C::*testAsMethod)() ) { } template -class TestInvokerFixture : public ITestInvoker { +class TestInvokerFixture final : public ITestInvoker { void ( C::*m_testAsMethod )() const; Detail::unique_ptr m_fixture = nullptr;