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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-05-29 21:41:51 +0200
committerMartin Hořeňovský2023-05-29 21:45:30 +0200
commitdff7513b289f823fec91010f8898b8a01f7dcd12 (patch)
tree544516d430b5f4b9fef144cac58b316fbd320c2e /tests/SelfTest/UsageTests
parentbf5aa7b383b143ba9939fad289d1f7a41f07f8cd (diff)
downloadcatch3-dff7513b289f823fec91010f8898b8a01f7dcd12.tar.gz
Static analysis cleanup in tests
Diffstat (limited to 'tests/SelfTest/UsageTests')
-rw-r--r--tests/SelfTest/UsageTests/Matchers.tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SelfTest/UsageTests/Matchers.tests.cpp b/tests/SelfTest/UsageTests/Matchers.tests.cpp
index a40908d7..74bedf5e 100644
--- a/tests/SelfTest/UsageTests/Matchers.tests.cpp
+++ b/tests/SelfTest/UsageTests/Matchers.tests.cpp
@@ -890,7 +890,7 @@ struct MatcherA : Catch::Matchers::MatcherGenericBase {
return "equals: (int) 1 or (string) \"1\"";
}
bool match( int i ) const { return i == 1; }
- bool match( std::string s ) const { return s == "1"; }
+ bool match( std::string const& s ) const { return s == "1"; }
};
struct MatcherB : Catch::Matchers::MatcherGenericBase {