mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Explicitly inline trivial function in CumulativeReporterBase impl
This commit is contained in:
parent
bd1e76cc3a
commit
3610eb81b1
@ -29,9 +29,6 @@ namespace Catch {
|
|||||||
SectionInfo const& m_other;
|
SectionInfo const& m_other;
|
||||||
};
|
};
|
||||||
|
|
||||||
void prepareExpandedExpression( AssertionResult& result ) {
|
|
||||||
result.getExpandedExpression();
|
|
||||||
}
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|
||||||
@ -71,8 +68,8 @@ namespace Catch {
|
|||||||
// Our section stack copy of the assertionResult will likely outlive the
|
// Our section stack copy of the assertionResult will likely outlive the
|
||||||
// temporary, so it must be expanded or discarded now to avoid calling
|
// temporary, so it must be expanded or discarded now to avoid calling
|
||||||
// a destroyed object later.
|
// a destroyed object later.
|
||||||
prepareExpandedExpression(
|
static_cast<void>(
|
||||||
const_cast<AssertionResult&>( assertionStats.assertionResult ) );
|
assertionStats.assertionResult.getExpandedExpression() );
|
||||||
SectionNode& sectionNode = *m_sectionStack.back();
|
SectionNode& sectionNode = *m_sectionStack.back();
|
||||||
sectionNode.assertions.push_back( assertionStats );
|
sectionNode.assertions.push_back( assertionStats );
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user