mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06: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 {
|
class AutomakeReporter final : public StreamingReporterBase {
|
||||||
public:
|
public:
|
||||||
AutomakeReporter( ReporterConfig const& _config )
|
using StreamingReporterBase::StreamingReporterBase;
|
||||||
: StreamingReporterBase( _config )
|
|
||||||
{}
|
|
||||||
|
|
||||||
~AutomakeReporter() override;
|
~AutomakeReporter() override;
|
||||||
|
|
||||||
|
@ -89,8 +89,7 @@ namespace Catch {
|
|||||||
using TestCaseNode = Node<TestCaseStats, SectionNode>;
|
using TestCaseNode = Node<TestCaseStats, SectionNode>;
|
||||||
using TestRunNode = Node<TestRunStats, TestCaseNode>;
|
using TestRunNode = Node<TestRunStats, TestCaseNode>;
|
||||||
|
|
||||||
CumulativeReporterBase( ReporterConfig const& _config ):
|
using ReporterBase::ReporterBase;
|
||||||
ReporterBase( _config ) {}
|
|
||||||
~CumulativeReporterBase() override;
|
~CumulativeReporterBase() override;
|
||||||
|
|
||||||
void benchmarkPreparing( StringRef ) override {}
|
void benchmarkPreparing( StringRef ) override {}
|
||||||
|
@ -29,9 +29,7 @@ namespace Catch {
|
|||||||
void updatePreferences(IEventListener const& reporterish);
|
void updatePreferences(IEventListener const& reporterish);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MultiReporter( IConfig const* config ):
|
using IEventListener::IEventListener;
|
||||||
IEventListener( config )
|
|
||||||
{}
|
|
||||||
|
|
||||||
void addListener( IEventListenerPtr&& listener );
|
void addListener( IEventListenerPtr&& listener );
|
||||||
void addReporter( IEventListenerPtr&& reporter );
|
void addReporter( IEventListenerPtr&& reporter );
|
||||||
|
@ -18,10 +18,7 @@ namespace Catch {
|
|||||||
|
|
||||||
class StreamingReporterBase : public ReporterBase {
|
class StreamingReporterBase : public ReporterBase {
|
||||||
public:
|
public:
|
||||||
StreamingReporterBase( ReporterConfig const& _config ):
|
using ReporterBase::ReporterBase;
|
||||||
ReporterBase( _config ) {}
|
|
||||||
|
|
||||||
|
|
||||||
~StreamingReporterBase() override;
|
~StreamingReporterBase() override;
|
||||||
|
|
||||||
void benchmarkPreparing( StringRef ) override {}
|
void benchmarkPreparing( StringRef ) override {}
|
||||||
|
Loading…
Reference in New Issue
Block a user