diff options
| author | Martin Hořeňovský | 2022-11-10 12:43:19 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-11-10 15:25:51 +0100 |
| commit | 6e77e16ea83b928ff7a1e251df2fe8eab38963a9 (patch) | |
| tree | 8bd6802b10b795f6a0fd493ff3c99a0422acd0fe /src/catch2/internal/catch_assertion_handler.cpp | |
| parent | 943c6e3deea38cd06dab722ffe5504e2e39bce27 (diff) | |
| download | catch3-6e77e16ea83b928ff7a1e251df2fe8eab38963a9.tar.gz | |
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%.
Diffstat (limited to 'src/catch2/internal/catch_assertion_handler.cpp')
| -rw-r--r-- | src/catch2/internal/catch_assertion_handler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_assertion_handler.cpp b/src/catch2/internal/catch_assertion_handler.cpp index bfa0897d..f051314c 100644 --- a/src/catch2/internal/catch_assertion_handler.cpp +++ b/src/catch2/internal/catch_assertion_handler.cpp @@ -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 |