summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroffa <bm-dev@yandex.com>2020-02-04 18:45:52 +0100
committerMartin Hořeňovský <martin.horenovsky@gmail.com>2020-02-08 14:27:40 +0100
commite70fd2a4b9a867c57c215b73d28bf911333bf45c (patch)
treeaefd5891e2b4b1d6fddfb94f2a5f81c2d45e3ada
parent36170d60ca3c76c663b7c12a518c979394d67f7a (diff)
downloadcatch2-e70fd2a4b9a867c57c215b73d28bf911333bf45c.tar.gz
Variables made const-ref.
-rw-r--r--include/internal/catch_list.cpp6
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 {