mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 21:49:24 +00:00
A load more C++11 tweaks - mostly moving initialisations from constructors to inline
This commit is contained in:
parent
cc8206f4c3
commit
e749724a11
23 changed files with 64 additions and 145 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue