forked from catchorg/Catch2
Explicitly inline trivial function in CumulativeReporterBase impl
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user