Do not use shared_ptrs for filters and patterns

This commit is contained in:
Martin Hořeňovský
2020-01-25 20:39:17 +01:00
parent df2379218b
commit d0257fc1ff
4 changed files with 15 additions and 16 deletions
+2 -2
View File
@@ -29,13 +29,13 @@ namespace Catch {
namespace {
void listTests(IStreamingReporter& reporter, Config const& config) {
TestSpec testSpec = config.testSpec();
auto const& testSpec = config.testSpec();
auto matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
reporter.listTests(matchedTestCases, config);
}
void listTags(IStreamingReporter& reporter, Config const& config) {
TestSpec testSpec = config.testSpec();
auto const& testSpec = config.testSpec();
std::vector<TestCaseHandle> matchedTestCases = filterTests(getAllTestCasesSorted(config), testSpec, config);
std::map<StringRef, TagInfo> tagCounts;