mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-26 12:43:31 +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;
|
||||
};
|
||||
|
||||
void prepareExpandedExpression( AssertionResult& result ) {
|
||||
result.getExpandedExpression();
|
||||
}
|
||||
} // namespace
|
||||
|
||||
|
||||
@ -71,8 +68,8 @@ namespace Catch {
|
||||
// Our section stack copy of the assertionResult will likely outlive the
|
||||
// temporary, so it must be expanded or discarded now to avoid calling
|
||||
// a destroyed object later.
|
||||
prepareExpandedExpression(
|
||||
const_cast<AssertionResult&>( assertionStats.assertionResult ) );
|
||||
static_cast<void>(
|
||||
assertionStats.assertionResult.getExpandedExpression() );
|
||||
SectionNode& sectionNode = *m_sectionStack.back();
|
||||
sectionNode.assertions.push_back( assertionStats );
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user