diff options
| author | Martin Hořeňovský | 2020-01-25 20:39:17 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-01-25 20:39:17 +0100 |
| commit | d0257fc1ff130ab2f3cab646ab43c755f3b62e00 (patch) | |
| tree | 03545de55ba02f67917d36223e923a1b61813a74 /src/catch2/catch_list.cpp | |
| parent | df2379218b634e0c1b21b49ea56354a2102d4cd1 (diff) | |
| download | catch3-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.cpp | 4 |
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; |