Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces/catch_interfaces_reporter.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-02-23 23:46:45 +0100
committerMartin Hořeňovský2022-03-06 16:34:13 +0100
commit61d0f7a9afb88c12f8931f80321e58f2cfbc62db (patch)
treecdb5f8f3a86c99dd56c5dcb14a05b3f5751b1e9b /src/catch2/interfaces/catch_interfaces_reporter.cpp
parent9b01c404f514782383ec064c57a0a8e7d326f476 (diff)
downloadcatch3-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.cpp6
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,