diff options
| author | Martin Hořeňovský | 2022-02-23 23:46:45 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-03-06 16:34:13 +0100 |
| commit | 61d0f7a9afb88c12f8931f80321e58f2cfbc62db (patch) | |
| tree | cdb5f8f3a86c99dd56c5dcb14a05b3f5751b1e9b /src/catch2/interfaces/catch_interfaces_reporter.cpp | |
| parent | 9b01c404f514782383ec064c57a0a8e7d326f476 (diff) | |
| download | catch3-61d0f7a9afb88c12f8931f80321e58f2cfbc62db.tar.gz | |
Pass the whole IStream wrapper into reporter
This will become useful when reworking colour support, because
Win32 colour support requires checking whether the output is
stdout, which is done through the `IStream` wrapper.
Diffstat (limited to 'src/catch2/interfaces/catch_interfaces_reporter.cpp')
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_reporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_reporter.cpp b/src/catch2/interfaces/catch_interfaces_reporter.cpp index e5d3921f..5f5d274a 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.cpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.cpp @@ -20,10 +20,10 @@ namespace Catch { - ReporterConfig::ReporterConfig( IConfig const* _fullConfig, std::ostream& _stream ) - : m_stream( &_stream ), m_fullConfig( _fullConfig ) {} + ReporterConfig::ReporterConfig( IConfig const* _fullConfig, IStream const* _stream ) + : m_stream( _stream ), m_fullConfig( _fullConfig ) {} - std::ostream& ReporterConfig::stream() const { return *m_stream; } + IStream const* ReporterConfig::stream() const { return m_stream; } IConfig const * ReporterConfig::fullConfig() const { return m_fullConfig; } AssertionStats::AssertionStats( AssertionResult const& _assertionResult, |