assertionEnded event in reporters no longer returns bool

This commit is contained in:
Martin Hořeňovský
2021-09-15 18:57:56 +02:00
parent 013edc208b
commit f314fa1f8c
23 changed files with 28 additions and 55 deletions
+1 -3
View File
@@ -249,9 +249,7 @@ namespace Catch {
m_lastAssertionPassed = true;
}
// We have no use for the return value (whether messages should be cleared), because messages were made scoped
// and should be let to clear themselves out.
static_cast<void>(m_reporter->assertionEnded(AssertionStats(result, m_messages, m_totals)));
m_reporter->assertionEnded(AssertionStats(result, m_messages, m_totals));
if (result.getResultType() != ResultWas::Warning)
m_messageScopes.clear();