Make ListeningReporter final

In general, for Catch2 v3 we are making virtual types `final`,
unless they were explicitly designed to be derived-from.
`ListeningReporter` is definitely not designed to be derived-from.
This commit is contained in:
Martin Hořeňovský
2020-03-09 21:09:12 +01:00
parent 727b26ab35
commit a15ffb735d
2 changed files with 6 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
namespace Catch {
class ListeningReporter : public IStreamingReporter {
class ListeningReporter final : public IStreamingReporter {
using Reporters = std::vector<IStreamingReporterPtr>;
Reporters m_listeners;
IStreamingReporterPtr m_reporter = nullptr;