Remove pointless member variable from RunContext

This commit is contained in:
Martin Hořeňovský committed 2023-03-20 20:34:58 +01:00
1 parent 3c8fb6bbb2
commit 28437e1214
2 files changed
+1 -4

No files matched your search

+1 -2
View File
@@ -167,13 +167,12 @@ namespace Catch {
RunContext::RunContext(IConfig const* _config, IEventListenerPtr&& reporter)
: m_runInfo(_config->name()),
m_context(getCurrentMutableContext()),
m_config(_config),
m_reporter(CATCH_MOVE(reporter)),
m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions )
{
m_context.setResultCapture(this);
getCurrentMutableContext().setResultCapture( this );
m_reporter->testRunStarting(m_runInfo);
}