diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.cpp b/src/catch2/reporters/catch_reporter_cumulative_base.cpp index dabf1a4e..dcb57fc2 100644 --- a/src/catch2/reporters/catch_reporter_cumulative_base.cpp +++ b/src/catch2/reporters/catch_reporter_cumulative_base.cpp @@ -105,9 +105,9 @@ namespace Catch { } void CumulativeReporterBase::testRunEnded( TestRunStats const& testRunStats ) { - auto node = std::make_shared( testRunStats ); + auto node = Detail::make_unique( testRunStats ); node->children.swap( m_testGroups ); - m_testRuns.push_back( node ); + m_testRuns.push_back( std::move(node) ); testRunEndedCumulative(); } diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.hpp b/src/catch2/reporters/catch_reporter_cumulative_base.hpp index 2f5fa5fb..8897523e 100644 --- a/src/catch2/reporters/catch_reporter_cumulative_base.hpp +++ b/src/catch2/reporters/catch_reporter_cumulative_base.hpp @@ -9,6 +9,7 @@ #define CATCH_REPORTER_CUMULATIVE_BASE_HPP_INCLUDED #include +#include #include #include @@ -77,7 +78,7 @@ namespace Catch { std::vector> m_testCases; std::vector> m_testGroups; - std::vector> m_testRuns; + std::vector> m_testRuns; std::shared_ptr m_rootSection; std::shared_ptr m_deepestSection;