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

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorPhil Nash2013-10-23 15:35:07 +0100
committerPhil Nash2013-10-23 15:35:07 +0100
commit93a945cee9d41236c91995f0bec563bcacbfc5c8 (patch)
tree770344ead5fac6f886a4d2c3eeb7ea7d4ed1dd3b /include/internal
parent2b644b5128ce2ba4a1faf36e8a17e05f7a7cb4c7 (diff)
downloadcatch3-93a945cee9d41236c91995f0bec563bcacbfc5c8.tar.gz
Fixed uninitialised members in Context object
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/catch_context_impl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_context_impl.hpp b/include/internal/catch_context_impl.hpp
index 11ef98e1..0dd326c5 100644
--- a/include/internal/catch_context_impl.hpp
+++ b/include/internal/catch_context_impl.hpp
@@ -17,7 +17,7 @@ namespace Catch {
class Context : public IMutableContext {
- Context() : m_config( NULL ) {}
+ Context() : m_config( NULL ), m_runner( NULL ), m_resultCapture( NULL ) {}
Context( Context const& );
void operator=( Context const& );
@@ -77,9 +77,9 @@ namespace Catch {
}
private:
+ Ptr<IConfig const> m_config;
IRunner* m_runner;
IResultCapture* m_resultCapture;
- Ptr<IConfig const> m_config;
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
};