Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Cleanup visibility in StreamingReporterBase

Commit
b2ac27423a7bc8cb97bada5e74d9dd71e03a0fcc
Author
Martin Hořeňovský ·
Parents
a754cb90621f

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_streaming_base.hpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/catch2/reporters/catch_reporter_streaming_base.hpp b/src/catch2/reporters/catch_reporter_streaming_base.hpp
index ee40fbeb..63d3a38a 100644
--- a/src/catch2/reporters/catch_reporter_streaming_base.hpp
+++ b/src/catch2/reporters/catch_reporter_streaming_base.hpp
@@ -33,8 +33,8 @@ namespace Catch {
     };
 
 
-    struct StreamingReporterBase : IStreamingReporter {
-
+    class StreamingReporterBase : public IStreamingReporter {
+    public:
         StreamingReporterBase( ReporterConfig const& _config ):
             IStreamingReporter( _config.fullConfig() ),
             stream( _config.stream() ) {}
@@ -82,6 +82,7 @@ namespace Catch {
         void listTests( std::vector<TestCaseHandle> const& tests ) override;
         void listTags( std::vector<TagInfo> const& tags ) override;
 
+    protected:
         std::ostream& stream;
 
         LazyStat<TestRunInfo> currentTestRunInfo;