Hold reporter's IConfig instance in the interface

Previously, every base derived from the IStreamingReporter had
its own `IConfig const* m_config` member, so this just centralizes
the handling thereof.

Part of #2061
This commit is contained in:
Martin Hořeňovský committed 2021-01-16 15:27:56 +01:00
1 parent ba81505168
commit 74f2f4ba5e
7 files changed
+17 -15

No files matched your search

@@ -176,7 +176,12 @@ namespace Catch {
protected:
//! Derived classes can set up their preferences here
ReporterPreferences m_preferences;
//! The test run's config as filled in from CLI and defaults
IConfig const* m_config;
public:
IStreamingReporter( IConfig const* config ): m_config( config ) {}
virtual ~IStreamingReporter() = default;
// Implementing class must also provide the following static methods: