2
0
mirror of https://github.com/catchorg/Catch2 synced 2026-02-25 17:02:21 +00:00

Remove unused StringRef argument from MatchExpr

Apart from cleaning up the code, this change also improves the
compilation time of `UsageTests/Matchers.tests.cpp` by about 2%.
This commit is contained in:
Martin Hořeňovský
2022-11-10 12:43:19 +01:00
parent 943c6e3dee
commit 6e77e16ea8
5 changed files with 13 additions and 16 deletions

View File

@@ -76,8 +76,8 @@ namespace Catch {
// This is the overload that takes a string and infers the Equals matcher from it
// The more general overload, that takes any string matcher, is in catch_capture_matchers.cpp
void handleExceptionMatchExpr( AssertionHandler& handler, std::string const& str, StringRef matcherString ) {
handleExceptionMatchExpr( handler, Matchers::Equals( str ), matcherString );
void handleExceptionMatchExpr( AssertionHandler& handler, std::string const& str ) {
handleExceptionMatchExpr( handler, Matchers::Equals( str ) );
}
} // namespace Catch