Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_run_context.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-08-08 01:02:24 +0100
committerPhil Nash2017-08-08 01:02:24 +0100
commit5e60050299ace9652c50103b8febbb0e4be67475 (patch)
treed8164fdcd4296eaae1164c05e09b68ca0777891b /include/internal/catch_run_context.cpp
parente658bacb04ef5c14c1dcb192c9e5c99cef390582 (diff)
downloadcatch3-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.cpp8
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() {