Make IStream::stream non-const

This way it makes much more sense from logically-const point
of view, and also means that concrete implementations don't
have to always have a `mutable` keyword on the stream member.
This commit is contained in:
Martin Hořeňovský committed 2022-04-13 14:59:39 +02:00
1 parent 9934b7de13
commit 4f09f1120b
11 files changed
+32 -32

No files matched your search

+2 -2
View File
@@ -108,8 +108,8 @@ namespace Catch {
return m_data.reporterSpecifications;
}
IStream const* Config::getReporterOutputStream(std::size_t reporterIdx) const {
return m_reporterStreams.at(reporterIdx).get();
IStream* Config::getReporterOutputStream(std::size_t reporterIdx) const {
return const_cast<IStream*>(m_reporterStreams.at(reporterIdx).get());
}
TestSpec const& Config::testSpec() const { return m_testSpec; }