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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_config.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/catch_config.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/catch_config.cpp')
-rw-r--r--src/catch2/catch_config.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/catch_config.cpp b/src/catch2/catch_config.cpp
index e6a5b2ed..6d6e0831 100644
--- a/src/catch2/catch_config.cpp
+++ b/src/catch2/catch_config.cpp
@@ -107,8 +107,8 @@ namespace Catch {
return m_data.reporterSpecifications;
}
- std::ostream& Config::getReporterOutputStream(std::size_t reporterIdx) const {
- return m_reporterStreams.at(reporterIdx)->stream();
+ IStream const* Config::getReporterOutputStream(std::size_t reporterIdx) const {
+ return m_reporterStreams.at(reporterIdx).get();
}
TestSpec const& Config::testSpec() const { return m_testSpec; }
@@ -118,7 +118,7 @@ namespace Catch {
// IConfig interface
bool Config::allowThrows() const { return !m_data.noThrow; }
- std::ostream& Config::defaultStream() const { return m_defaultStream->stream(); }
+ IStream const* Config::defaultStream() const { return m_defaultStream.get(); }
StringRef Config::name() const { return m_data.name.empty() ? m_data.processName : m_data.name; }
bool Config::includeSuccessfulResults() const { return m_data.showSuccessfulTests; }
bool Config::warnAboutMissingAssertions() const {