Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Use parent constructor where applicable in reporters

Commit
61f803126d3cff2195d700d11d07c6578f416b23
Author
Martin Hořeňovský ·
Parents
d698776ec55e

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_automake.hpp        | 4 +---
 src/catch2/reporters/catch_reporter_cumulative_base.hpp | 3 +--
 src/catch2/reporters/catch_reporter_multi.hpp           | 4 +---
 src/catch2/reporters/catch_reporter_streaming_base.hpp  | 5 +----
 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 {}