diff options
| author | Martin Hořeňovský | 2020-08-24 22:52:59 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-08-29 19:09:54 +0200 |
| commit | 33ad1ee2ac7beaae8d6bfa661213d13cecbce196 (patch) | |
| tree | 38241cca7d27b67f4eccc6dc5284e1388cd24a91 /examples | |
| parent | f9fdc96cbfbd79397af202d9afdd3f8eb906b73b (diff) | |
| download | catch3-33ad1ee2ac7beaae8d6bfa661213d13cecbce196.tar.gz | |
Split EventListener base from streaming_base.hpp
The base was also renamed from `TestEventListenerBase` to
`EventListenerBase`, and modified to derive directly from the
reporter interface, rather than deriving from `StreamingReporterBase`.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/210-Evt-EventListeners.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/210-Evt-EventListeners.cpp b/examples/210-Evt-EventListeners.cpp index 89c828d5..7a025375 100644 --- a/examples/210-Evt-EventListeners.cpp +++ b/examples/210-Evt-EventListeners.cpp @@ -6,7 +6,7 @@ // 3. Test cases #include <catch2/catch_test_macros.hpp> -#include <catch2/reporters/catch_reporter_streaming_base.hpp> +#include <catch2/reporters/catch_reporter_event_listener.hpp> #include <catch2/catch_reporter_registrars.hpp> #include <catch2/catch_test_case_info.hpp> #include <iostream> @@ -303,9 +303,9 @@ char const * dashed_line = "--------------------------------------------------------------------------"; -struct MyListener : Catch::TestEventListenerBase { +struct MyListener : Catch::EventListenerBase { - using TestEventListenerBase::TestEventListenerBase; // inherit constructor + using EventListenerBase::EventListenerBase; // inherit constructor // Get rid of Wweak-tables ~MyListener(); |