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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-19 14:25:54 +0200
committerMartin Hořeňovský2020-05-20 07:15:21 +0200
commitbad8b7c8667b80dae2e37726fbde104a95ec855c (patch)
tree526801d42968e20b9f35fe261b671d38ea119118
parent964303706a409848b64bad5380618f19ac4f3242 (diff)
downloadcatch3-bad8b7c8667b80dae2e37726fbde104a95ec855c.tar.gz
Fix make_shared used instead of make_unique
-rw-r--r--src/catch2/catch_reporter_registrars.hpp2
1 files changed, 1 insertions, 1 deletions
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>>() );
}
};