forked from catchorg/Catch2
Use plain pointer to point to deepest section in CumulativeReporterBase
Part of #2089
This commit is contained in:
@ -58,8 +58,9 @@ namespace Catch {
|
|||||||
node = *it;
|
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(
|
bool CumulativeReporterBase::assertionEnded(
|
||||||
|
@ -81,7 +81,7 @@ namespace Catch {
|
|||||||
std::vector<Detail::unique_ptr<TestRunNode>> m_testRuns;
|
std::vector<Detail::unique_ptr<TestRunNode>> m_testRuns;
|
||||||
|
|
||||||
std::shared_ptr<SectionNode> m_rootSection;
|
std::shared_ptr<SectionNode> m_rootSection;
|
||||||
std::shared_ptr<SectionNode> m_deepestSection;
|
SectionNode* m_deepestSection = nullptr;
|
||||||
std::vector<std::shared_ptr<SectionNode>> m_sectionStack;
|
std::vector<std::shared_ptr<SectionNode>> m_sectionStack;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user