diff options
| author | Martin Hořeňovský | 2026-04-07 11:07:59 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-04-07 14:36:08 +0200 |
| commit | e51dcdcc595371828de2b1d28985e8d8c1895345 (patch) | |
| tree | 5c63ffc139743e08c1c416bdc97fa3041ca77457 /src/catch2 | |
| parent | 77eae8bd2a2c8c3135d30649aa7c51b5bfc0e61e (diff) | |
| download | catch3-e51dcdcc595371828de2b1d28985e8d8c1895345.tar.gz | |
Mark TestInvoker{AsMethod,Fixture} as final
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/internal/catch_test_registry.hpp | 4 |
1 files 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<typename C> -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<ITestInvoker> makeTestInvoker( void (C::*testAsMethod)() ) { } template <typename C> -class TestInvokerFixture : public ITestInvoker { +class TestInvokerFixture final : public ITestInvoker { void ( C::*m_testAsMethod )() const; Detail::unique_ptr<C> m_fixture = nullptr; |