diff options
| author | Martin Hořeňovský | 2020-11-17 21:02:11 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-11-17 21:02:11 +0100 |
| commit | 3610eb81b14871b34112d09a3e8a29e5e6b22e03 (patch) | |
| tree | 6ccb3601ff6f2946fb45bac2631d5c6069a606ee /src/catch2 | |
| parent | bd1e76cc3ae94c0fb83ff11ca707ada66ace0be2 (diff) | |
| download | catch3-3610eb81b14871b34112d09a3e8a29e5e6b22e03.tar.gz | |
Explicitly inline trivial function in CumulativeReporterBase impl
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_cumulative_base.cpp | 7 |
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; |