mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Use parent constructor where applicable in reporters
This commit is contained in:
parent
d698776ec5
commit
61f803126d
@ -14,9 +14,7 @@ namespace Catch {
|
||||
|
||||
class AutomakeReporter final : public StreamingReporterBase {
|
||||
public:
|
||||
AutomakeReporter( ReporterConfig const& _config )
|
||||
: StreamingReporterBase( _config )
|
||||
{}
|
||||
using StreamingReporterBase::StreamingReporterBase;
|
||||
|
||||
~AutomakeReporter() override;
|
||||
|
||||
|
@ -89,8 +89,7 @@ namespace Catch {
|
||||
using TestCaseNode = Node<TestCaseStats, SectionNode>;
|
||||
using TestRunNode = Node<TestRunStats, TestCaseNode>;
|
||||
|
||||
CumulativeReporterBase( ReporterConfig const& _config ):
|
||||
ReporterBase( _config ) {}
|
||||
using ReporterBase::ReporterBase;
|
||||
~CumulativeReporterBase() override;
|
||||
|
||||
void benchmarkPreparing( StringRef ) override {}
|
||||
|
@ -29,9 +29,7 @@ namespace Catch {
|
||||
void updatePreferences(IEventListener const& reporterish);
|
||||
|
||||
public:
|
||||
MultiReporter( IConfig const* config ):
|
||||
IEventListener( config )
|
||||
{}
|
||||
using IEventListener::IEventListener;
|
||||
|
||||
void addListener( IEventListenerPtr&& listener );
|
||||
void addReporter( IEventListenerPtr&& reporter );
|
||||
|
@ -18,10 +18,7 @@ namespace Catch {
|
||||
|
||||
class StreamingReporterBase : public ReporterBase {
|
||||
public:
|
||||
StreamingReporterBase( ReporterConfig const& _config ):
|
||||
ReporterBase( _config ) {}
|
||||
|
||||
|
||||
using ReporterBase::ReporterBase;
|
||||
~StreamingReporterBase() override;
|
||||
|
||||
void benchmarkPreparing( StringRef ) override {}
|
||||
|
Loading…
Reference in New Issue
Block a user