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

@@ -59,7 +59,7 @@ namespace Catch {
public:
explicit RunContext( Ptr<IConfig const> const& _config, Ptr<IStreamingReporter> const& reporter )
explicit RunContext( IConfigPtr const& _config, Ptr<IStreamingReporter> const& reporter )
: m_runInfo( _config->name() ),
m_context( getCurrentMutableContext() ),
m_config( _config ),
@@ -128,7 +128,7 @@ namespace Catch {
return deltaTotals;
}
Ptr<IConfig const> config() const {
IConfigPtr config() const {
return m_config;
}
@@ -353,7 +353,7 @@ namespace Catch {
ITracker* m_currentSectionTracker;
AssertionResult m_lastResult;
Ptr<IConfig const> m_config;
IConfigPtr m_config;
Totals m_totals;
Ptr<IStreamingReporter> m_reporter;
std::vector<MessageInfo> m_messages;