diff options
| author | Martin Hořeňovský | 2023-03-20 20:34:58 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-03-20 20:34:58 +0100 |
| commit | 28437e1214fec5ffc4d744c75a894f9cddf8d635 (patch) | |
| tree | 3b5bc7e7eb0d7ebd65e131eec4f00208a9381406 /src/catch2/internal/catch_run_context.cpp | |
| parent | 3c8fb6bbb25284a6f4966723f9f1f502da59da45 (diff) | |
| download | catch3-28437e1214fec5ffc4d744c75a894f9cddf8d635.tar.gz | |
Remove pointless member variable from RunContext
Diffstat (limited to 'src/catch2/internal/catch_run_context.cpp')
| -rw-r--r-- | src/catch2/internal/catch_run_context.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp index c9e92eb1..8ffa7d47 100644 --- a/src/catch2/internal/catch_run_context.cpp +++ b/src/catch2/internal/catch_run_context.cpp @@ -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); } |