Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-04-12 22:27:12 +0200
committerMartin Hořeňovský2022-04-12 22:27:12 +0200
commit61f803126d3cff2195d700d11d07c6578f416b23 (patch)
tree54fe08a932250b0e127e570ff50b5b151c4e9689 /src
parentd698776ec55e40284d3d78632de481a7ed9a5f2e (diff)
downloadcatch3-61f803126d3cff2195d700d11d07c6578f416b23.tar.gz
Use parent constructor where applicable in reporters
Diffstat (limited to 'src')
-rw-r--r--src/catch2/reporters/catch_reporter_automake.hpp4
-rw-r--r--src/catch2/reporters/catch_reporter_cumulative_base.hpp3
-rw-r--r--src/catch2/reporters/catch_reporter_multi.hpp4
-rw-r--r--src/catch2/reporters/catch_reporter_streaming_base.hpp5
4 files changed, 4 insertions, 12 deletions
diff --git a/src/catch2/reporters/catch_reporter_automake.hpp b/src/catch2/reporters/catch_reporter_automake.hpp
index 01735d34..f254be68 100644
--- a/src/catch2/reporters/catch_reporter_automake.hpp
+++ b/src/catch2/reporters/catch_reporter_automake.hpp
@@ -14,9 +14,7 @@ namespace Catch {
class AutomakeReporter final : public StreamingReporterBase {
public:
- AutomakeReporter( ReporterConfig const& _config )
- : StreamingReporterBase( _config )
- {}
+ using StreamingReporterBase::StreamingReporterBase;
~AutomakeReporter() override;
diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.hpp b/src/catch2/reporters/catch_reporter_cumulative_base.hpp
index fd7a5045..d43ca479 100644
--- a/src/catch2/reporters/catch_reporter_cumulative_base.hpp
+++ b/src/catch2/reporters/catch_reporter_cumulative_base.hpp
@@ -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 {}
diff --git a/src/catch2/reporters/catch_reporter_multi.hpp b/src/catch2/reporters/catch_reporter_multi.hpp
index 253063ae..29f2693f 100644
--- a/src/catch2/reporters/catch_reporter_multi.hpp
+++ b/src/catch2/reporters/catch_reporter_multi.hpp
@@ -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 );
diff --git a/src/catch2/reporters/catch_reporter_streaming_base.hpp b/src/catch2/reporters/catch_reporter_streaming_base.hpp
index 990610fa..afa67d76 100644
--- a/src/catch2/reporters/catch_reporter_streaming_base.hpp
+++ b/src/catch2/reporters/catch_reporter_streaming_base.hpp
@@ -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 {}