Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-11-17 21:02:11 +0100
committerMartin Hořeňovský2020-11-17 21:02:11 +0100
commit3610eb81b14871b34112d09a3e8a29e5e6b22e03 (patch)
tree6ccb3601ff6f2946fb45bac2631d5c6069a606ee
parentbd1e76cc3ae94c0fb83ff11ca707ada66ace0be2 (diff)
downloadcatch3-3610eb81b14871b34112d09a3e8a29e5e6b22e03.tar.gz
Explicitly inline trivial function in CumulativeReporterBase impl
-rw-r--r--src/catch2/reporters/catch_reporter_cumulative_base.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.cpp b/src/catch2/reporters/catch_reporter_cumulative_base.cpp
index b4824148..740b1a32 100644
--- a/src/catch2/reporters/catch_reporter_cumulative_base.cpp
+++ b/src/catch2/reporters/catch_reporter_cumulative_base.cpp
@@ -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;