diff options
| author | Martin Hořeňovský | 2020-11-26 10:21:12 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-11-26 10:21:12 +0100 |
| commit | bfe5553416609372655e76bc8849d2c6ce4c2705 (patch) | |
| tree | 1d1607b5008d3c7cb81c622449cf2b9f6a194410 /src/catch2 | |
| parent | c673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2 (diff) | |
| download | catch3-bfe5553416609372655e76bc8849d2c6ce4c2705.tar.gz | |
CumulativeReporterBase doesn't use shared_ptrs for sectionStack
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_cumulative_base.cpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_cumulative_base.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.cpp b/src/catch2/reporters/catch_reporter_cumulative_base.cpp index 67154d95..5a25ab9b 100644 --- a/src/catch2/reporters/catch_reporter_cumulative_base.cpp +++ b/src/catch2/reporters/catch_reporter_cumulative_base.cpp @@ -57,7 +57,7 @@ namespace Catch { } m_deepestSection = node.get(); - m_sectionStack.push_back( std::move(node) ); + m_sectionStack.push_back( node.get() ); } bool CumulativeReporterBase::assertionEnded( diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.hpp b/src/catch2/reporters/catch_reporter_cumulative_base.hpp index 94b4c589..7f228420 100644 --- a/src/catch2/reporters/catch_reporter_cumulative_base.hpp +++ b/src/catch2/reporters/catch_reporter_cumulative_base.hpp @@ -80,7 +80,7 @@ namespace Catch { std::shared_ptr<SectionNode> m_rootSection; SectionNode* m_deepestSection = nullptr; - std::vector<std::shared_ptr<SectionNode>> m_sectionStack; + std::vector<SectionNode*> m_sectionStack; }; } // end namespace Catch |