diff options
author | offa <bm-dev@yandex.com> | 2020-02-04 18:45:52 +0100 |
---|---|---|
committer | Martin Hořeňovský <martin.horenovsky@gmail.com> | 2020-02-08 14:27:40 +0100 |
commit | e70fd2a4b9a867c57c215b73d28bf911333bf45c (patch) | |
tree | aefd5891e2b4b1d6fddfb94f2a5f81c2d45e3ada | |
parent | 36170d60ca3c76c663b7c12a518c979394d67f7a (diff) | |
download | catch2-e70fd2a4b9a867c57c215b73d28bf911333bf45c.tar.gz |
Variables made const-ref.
-rw-r--r-- | include/internal/catch_list.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/internal/catch_list.cpp b/include/internal/catch_list.cpp index 11e55140..9f748e4c 100644 --- a/include/internal/catch_list.cpp +++ b/include/internal/catch_list.cpp @@ -28,7 +28,7 @@ namespace Catch { std::size_t listTests( Config const& config ) { - TestSpec testSpec = config.testSpec(); + TestSpec const& testSpec = config.testSpec(); if( config.hasTestFilters() ) Catch::cout() << "Matching test cases:\n"; else { @@ -62,7 +62,7 @@ namespace Catch { } std::size_t listTestsNamesOnly( Config const& config ) { - TestSpec testSpec = config.testSpec(); + TestSpec const& testSpec = config.testSpec(); std::size_t matchedTests = 0; std::vector<TestCase> matchedTestCases = filterTests( getAllTestCasesSorted( config ), testSpec, config ); for( auto const& testCaseInfo : matchedTestCases ) { @@ -100,7 +100,7 @@ namespace Catch { } std::size_t listTags( Config const& config ) { - TestSpec testSpec = config.testSpec(); + TestSpec const& testSpec = config.testSpec(); if( config.hasTestFilters() ) Catch::cout() << "Tags for matching test cases:\n"; else { |