Migrated Config and IConfig to shared_ptr (from Ptr)

This commit is contained in:
Phil Nash 2017-04-25 20:18:02 +01:00
parent 41afd0c3d4
commit 338ba6b9ba
10 changed files with 32 additions and 32 deletions

View file

@ -40,7 +40,7 @@ namespace Catch {
return generators && generators->moveNext();
}
virtual Ptr<IConfig const> getConfig() const {
virtual IConfigPtr getConfig() const {
return m_config;
}
@ -51,7 +51,7 @@ namespace Catch {
virtual void setRunner( IRunner* runner ) {
m_runner = runner;
}
virtual void setConfig( Ptr<IConfig const> const& config ) {
virtual void setConfig( IConfigPtr const& config ) {
m_config = config;
}
@ -79,7 +79,7 @@ namespace Catch {
}
private:
Ptr<IConfig const> m_config;
IConfigPtr m_config;
IRunner* m_runner = nullptr;
IResultCapture* m_resultCapture = nullptr;
std::map<std::string, IGeneratorsForTest*> m_generatorsByTestName;