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

Fix make_shared used instead of make_unique

Commit
bad8b7c8667b80dae2e37726fbde104a95ec855c
Author
Martin Hořeňovský ·
Parents
964303706a40

Files · Download .tar.gz

Changes

 src/catch2/catch_reporter_registrars.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/catch2/catch_reporter_registrars.hpp b/src/catch2/catch_reporter_registrars.hpp
index a4b9efb5..0b4c19f2 100644
--- a/src/catch2/catch_reporter_registrars.hpp
+++ b/src/catch2/catch_reporter_registrars.hpp
@@ -30,7 +30,7 @@ namespace Catch {
     class ReporterRegistrar {
     public:
         explicit ReporterRegistrar( std::string const& name ) {
-            getMutableRegistryHub().registerReporter( name, std::make_shared<ReporterFactory<T>>() );
+            getMutableRegistryHub().registerReporter( name, std::make_unique<ReporterFactory<T>>() );
         }
     };