Fixed uninitialised members in Context object

This commit is contained in:
Phil Nash 2013-10-23 15:35:07 +01:00
parent 2b644b5128
commit 93a945cee9
6 changed files with 2160 additions and 13 deletions

View file

@ -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;
};