diff options
| author | Phil Nash | 2017-08-08 01:02:24 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-08 01:02:24 +0100 |
| commit | 5e60050299ace9652c50103b8febbb0e4be67475 (patch) | |
| tree | d8164fdcd4296eaae1164c05e09b68ca0777891b /include/internal/catch_run_context.cpp | |
| parent | e658bacb04ef5c14c1dcb192c9e5c99cef390582 (diff) | |
| download | catch3-5e60050299ace9652c50103b8febbb0e4be67475.tar.gz | |
Removed default ctors for AssertionInfo, AssertionResult and SourceLineInfo
Diffstat (limited to 'include/internal/catch_run_context.cpp')
| -rw-r--r-- | include/internal/catch_run_context.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/internal/catch_run_context.cpp b/include/internal/catch_run_context.cpp index b54742ff..57e79ef6 100644 --- a/include/internal/catch_run_context.cpp +++ b/include/internal/catch_run_context.cpp @@ -19,10 +19,12 @@ namespace Catch { } RunContext::RunContext(IConfigPtr const& _config, IStreamingReporterPtr&& reporter) - : m_runInfo(_config->name()), + : m_runInfo(_config->name()), m_context(getCurrentMutableContext()), m_config(_config), - m_reporter(std::move(reporter)) { + m_reporter(std::move(reporter)), + m_lastAssertionInfo( "", SourceLineInfo("",0), "", ResultDisposition::Normal ) + { m_context.setRunner(this); m_context.setConfig(m_config); m_context.setResultCapture(this); @@ -180,7 +182,7 @@ namespace Catch { } const AssertionResult * RunContext::getLastResult() const { - return &m_lastResult; + return &(*m_lastResult); } void RunContext::exceptionEarlyReported() { |