Pass other StringRef arguments by value instead of by-ref

Apart from being clearer, it also improves the overall codesize
of the implementation library, and should improve the performance
as well, by removing one level of indirection.
This commit is contained in:
Martin Hořeňovský committed 2021-05-14 23:45:59 +02:00
1 parent 074017f5ad
commit 61e16416a9
11 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -519,7 +519,7 @@ namespace Catch {
void RunContext::handleMessage(
AssertionInfo const& info,
ResultWas::OfType resultType,
StringRef const& message,
StringRef message,
AssertionReaction& reaction
) {
m_reporter->assertionStarting( info );