mirror of
https://github.com/catchorg/Catch2.git
synced 2025-10-16 00:35:30 +02:00
A load more C++11 tweaks - mostly moving initialisations from constructors to inline
This commit is contained in:
@@ -16,11 +16,7 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
class Context : public IMutableContext {
|
||||
|
||||
Context() : m_config( nullptr ), m_runner( nullptr ), m_resultCapture( nullptr ) {}
|
||||
Context( Context const& );
|
||||
void operator=( Context const& );
|
||||
class Context : public IMutableContext, NonCopyable {
|
||||
|
||||
public:
|
||||
virtual ~Context() {
|
||||
@@ -84,8 +80,8 @@ namespace Catch {
|
||||
|
||||
private:
|
||||
Ptr<IConfig const> m_config;
|
||||
IRunner* m_runner;
|
||||
IResultCapture* m_resultCapture;
|
||||
IRunner* m_runner = nullptr;
|
||||
IResultCapture* m_resultCapture = nullptr;
|
||||
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user