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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_list.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-01-25 20:39:17 +0100
committerMartin Hořeňovský2020-01-25 20:39:17 +0100
commitd0257fc1ff130ab2f3cab646ab43c755f3b62e00 (patch)
tree03545de55ba02f67917d36223e923a1b61813a74 /src/catch2/catch_list.cpp
parentdf2379218b634e0c1b21b49ea56354a2102d4cd1 (diff)
downloadcatch3-d0257fc1ff130ab2f3cab646ab43c755f3b62e00.tar.gz
Do not use shared_ptrs for filters and patterns
Diffstat (limited to 'src/catch2/catch_list.cpp')
-rw-r--r--src/catch2/catch_list.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/catch_list.cpp b/src/catch2/catch_list.cpp
index 91f58187..aac06572 100644
--- a/src/catch2/catch_list.cpp
+++ b/src/catch2/catch_list.cpp
@@ -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;