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

summaryrefslogtreecommitdiffhomepage
path: root/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-04-12 21:22:43 +0200
committerMartin Hořeňovský2022-04-13 15:00:50 +0200
commit79d1e8238135427a6780a6db2cdb8b9be0b7f086 (patch)
tree13b7a82bbad094af77171b2807b5d9241acc1721 /tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp
parent4f09f1120ba0a28f218a00821a8347a443042ecb (diff)
downloadcatch3-79d1e8238135427a6780a6db2cdb8b9be0b7f086.tar.gz
Store IStream instance owning ptrs in reporter instances
This ended up being a surprisingly large refactoring, motivated by removing a `const_cast` from `Config`'s handling of reporter streams, forced by previous commit.
Diffstat (limited to 'tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp')
-rw-r--r--tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp b/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp
index 2ef629bf..c75d891e 100644
--- a/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp
+++ b/tests/ExtraTests/X22-BenchmarksInCumulativeReporter.cpp
@@ -20,12 +20,13 @@
#include <catch2/reporters/catch_reporter_registrars.hpp>
#include <iostream>
+#include <utility>
class CumulativeBenchmarkReporter final : public Catch::CumulativeReporterBase {
public:
- CumulativeBenchmarkReporter(Catch::ReporterConfig const& _config) :
- CumulativeReporterBase(_config) {
+ CumulativeBenchmarkReporter(Catch::ReporterConfig&& _config) :
+ CumulativeReporterBase(std::move(_config)) {
m_preferences.shouldReportAllAssertions = true;
}