Session now holds Config in unique_ptr instead of shared_ptr

This commit is contained in:
Martin Hořeňovský
2020-05-19 18:02:05 +02:00
parent 668454b36b
commit 21d284df34
4 changed files with 9 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ namespace Catch {
}
IConfig const* getConfig() const override {
return m_config.get();
return m_config;
}
~Context() override;
@@ -34,14 +34,14 @@ namespace Catch {
void setRunner( IRunner* runner ) override {
m_runner = runner;
}
void setConfig( IConfigPtr const& config ) override {
void setConfig( IConfig const* config ) override {
m_config = config;
}
friend IMutableContext& getCurrentMutableContext();
private:
IConfigPtr m_config;
IConfig const* m_config = nullptr;
IRunner* m_runner = nullptr;
IResultCapture* m_resultCapture = nullptr;
};