CumulativeReporterBase doesn't use shared_ptrs for sectionStack

This commit is contained in:
Martin Hořeňovský 2020-11-26 10:21:12 +01:00
parent c673db7a4e
commit bfe5553416
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 2 additions and 2 deletions

View File

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

View File

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