From 5f38cc39fac811b7d08d48bfc8b94599c2fd720b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 14 Nov 2021 11:24:33 +0100 Subject: [PATCH] JUnit/SonarQube reporters use base's stream member --- src/catch2/reporters/catch_reporter_junit.cpp | 2 +- src/catch2/reporters/catch_reporter_sonarqube.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp index 30df87a9..e12fc3ea 100644 --- a/src/catch2/reporters/catch_reporter_junit.cpp +++ b/src/catch2/reporters/catch_reporter_junit.cpp @@ -70,7 +70,7 @@ namespace Catch { JunitReporter::JunitReporter( ReporterConfig const& _config ) : CumulativeReporterBase( _config ), - xml( _config.stream() ) + xml( m_stream ) { m_preferences.shouldRedirectStdOut = true; m_preferences.shouldReportAllAssertions = true; diff --git a/src/catch2/reporters/catch_reporter_sonarqube.hpp b/src/catch2/reporters/catch_reporter_sonarqube.hpp index de3d08d4..ec22ecfa 100644 --- a/src/catch2/reporters/catch_reporter_sonarqube.hpp +++ b/src/catch2/reporters/catch_reporter_sonarqube.hpp @@ -18,7 +18,7 @@ namespace Catch { SonarQubeReporter(ReporterConfig const& config) : CumulativeReporterBase(config) - , xml(config.stream()) { + , xml(m_stream) { m_preferences.shouldRedirectStdOut = true; m_preferences.shouldReportAllAssertions = true; m_shouldStoreSuccesfulAssertions = false;