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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_session.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-01-16 15:27:47 +0100
committerMartin Hořeňovský2021-01-16 15:27:56 +0100
commit74f2f4ba5e84355e4f123ec807c1ec3b29a0daa7 (patch)
treedfd00fd5eb5da2d638b1ddfebce1d5c89fc0ca8d /src/catch2/catch_session.cpp
parentba8150516800dd5e18f818346a2a12c45b6ec542 (diff)
downloadcatch3-74f2f4ba5e84355e4f123ec807c1ec3b29a0daa7.tar.gz
Hold reporter's IConfig instance in the interface
Previously, every base derived from the IStreamingReporter had its own `IConfig const* m_config` member, so this just centralizes the handling thereof. Part of #2061
Diffstat (limited to 'src/catch2/catch_session.cpp')
-rw-r--r--src/catch2/catch_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp
index a9519e75..5b1a50a9 100644
--- a/src/catch2/catch_session.cpp
+++ b/src/catch2/catch_session.cpp
@@ -48,7 +48,7 @@ namespace Catch {
// doesn't compile without a std::move call. However, this causes
// a warning on newer platforms. Thus, we have to work around
// it a bit and downcast the pointer manually.
- auto ret = Detail::unique_ptr<IStreamingReporter>(new ListeningReporter);
+ auto ret = Detail::unique_ptr<IStreamingReporter>(new ListeningReporter(config));
auto& multi = static_cast<ListeningReporter&>(*ret);
auto const& listeners = Catch::getRegistryHub().getReporterRegistry().getListeners();
for (auto const& listener : listeners) {