mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Use plain pointer to point to deepest section in CumulativeReporterBase
Part of #2089
This commit is contained in:
parent
4f14922aa3
commit
79c1bf9301
@ -58,8 +58,9 @@ namespace Catch {
|
||||
node = *it;
|
||||
}
|
||||
}
|
||||
m_sectionStack.push_back( node );
|
||||
m_deepestSection = std::move( node );
|
||||
|
||||
m_deepestSection = node.get();
|
||||
m_sectionStack.push_back( std::move(node) );
|
||||
}
|
||||
|
||||
bool CumulativeReporterBase::assertionEnded(
|
||||
|
@ -81,7 +81,7 @@ namespace Catch {
|
||||
std::vector<Detail::unique_ptr<TestRunNode>> m_testRuns;
|
||||
|
||||
std::shared_ptr<SectionNode> m_rootSection;
|
||||
std::shared_ptr<SectionNode> m_deepestSection;
|
||||
SectionNode* m_deepestSection = nullptr;
|
||||
std::vector<std::shared_ptr<SectionNode>> m_sectionStack;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user