mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-24 21:49:24 +00:00
Migrated Config and IConfig to shared_ptr (from Ptr)
This commit is contained in:
parent
41afd0c3d4
commit
338ba6b9ba
10 changed files with 32 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue