diff options
| author | Martin Hořeňovský | 2020-01-25 15:32:56 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-01-25 17:41:38 +0100 |
| commit | df2379218b634e0c1b21b49ea56354a2102d4cd1 (patch) | |
| tree | 6bc3a1184eed8325a6855bf5788f5c195e079c21 /src/catch2/catch_interfaces_reporter.cpp | |
| parent | 7134ad9913a1bc206726b9f1c057e1e625a08c27 (diff) | |
| download | catch3-df2379218b634e0c1b21b49ea56354a2102d4cd1.tar.gz | |
Reduce the use of shared_ptrs for various Config objects
Ideally they would not be used at all, but the main config lifetime
is a weird mess right now and will require further refactoring.
Diffstat (limited to 'src/catch2/catch_interfaces_reporter.cpp')
| -rw-r--r-- | src/catch2/catch_interfaces_reporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/catch_interfaces_reporter.cpp b/src/catch2/catch_interfaces_reporter.cpp index 815ffeb7..1986b806 100644 --- a/src/catch2/catch_interfaces_reporter.cpp +++ b/src/catch2/catch_interfaces_reporter.cpp @@ -16,14 +16,14 @@ namespace Catch { - ReporterConfig::ReporterConfig( IConfigPtr const& _fullConfig ) + ReporterConfig::ReporterConfig( IConfig const* _fullConfig ) : m_stream( &_fullConfig->stream() ), m_fullConfig( _fullConfig ) {} - ReporterConfig::ReporterConfig( IConfigPtr const& _fullConfig, std::ostream& _stream ) + ReporterConfig::ReporterConfig( IConfig const* _fullConfig, std::ostream& _stream ) : m_stream( &_stream ), m_fullConfig( _fullConfig ) {} std::ostream& ReporterConfig::stream() const { return *m_stream; } - IConfigPtr ReporterConfig::fullConfig() const { return m_fullConfig; } + IConfig const * ReporterConfig::fullConfig() const { return m_fullConfig; } TestRunInfo::TestRunInfo( std::string const& _name ) : name( _name ) {} |