CumulativeReporterBase doesn't use shared_ptrs for sectionStack

This commit is contained in:
Martin Hořeňovský committed 2020-11-26 10:21:12 +01:00
1 parent c673db7a4e
commit bfe5553416
2 files changed
+2 -2

No files matched your search

@@ -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(
@@ -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