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-04-12 20:59:01 +0200
committerMartin Hořeňovský2022-04-13 14:59:39 +0200
commit4f09f1120ba0a28f218a00821a8347a443042ecb (patch)
treeaf5dc04a3e0c91476e0b03e60d914d5bf2b11693 /src/catch2/interfaces/catch_interfaces_reporter.cpp
parent9934b7de13ef303e0d7b1bccf519422be73c6a03 (diff)
downloadcatch3-4f09f1120ba0a28f218a00821a8347a443042ecb.tar.gz
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.
Diffstat (limited to 'src/catch2/interfaces/catch_interfaces_reporter.cpp')
-rw-r--r--src/catch2/interfaces/catch_interfaces_reporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_reporter.cpp b/src/catch2/interfaces/catch_interfaces_reporter.cpp
index 585d4365..926331e0 100644
--- a/src/catch2/interfaces/catch_interfaces_reporter.cpp
+++ b/src/catch2/interfaces/catch_interfaces_reporter.cpp
@@ -23,7 +23,7 @@ namespace Catch {
ReporterConfig::ReporterConfig(
IConfig const* _fullConfig,
- IStream const* _stream,
+ IStream* _stream,
ColourMode colourMode,
std::map<std::string, std::string> customOptions ):
m_stream( _stream ),
@@ -31,7 +31,7 @@ namespace Catch {
m_colourMode( colourMode ),
m_customOptions( CATCH_MOVE( customOptions ) ) {}
- IStream const* ReporterConfig::stream() const { return m_stream; }
+ IStream* ReporterConfig::stream() const { return m_stream; }
IConfig const * ReporterConfig::fullConfig() const { return m_fullConfig; }
ColourMode ReporterConfig::colourMode() const { return m_colourMode; }