Pass StringRef by value instead of by const-ref

This commit is contained in:
Martin Hořeňovský 2021-05-14 15:59:42 +02:00
parent 28f6698ec8
commit 0a89e7f0c4
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ Catch::LeakDetector::~LeakDetector() {
namespace Catch {
MessageInfo::MessageInfo( StringRef const& _macroName,
MessageInfo::MessageInfo( StringRef _macroName,
SourceLineInfo const& _lineInfo,
ResultWas::OfType _type )
: macroName( _macroName ),

View File

@ -17,7 +17,7 @@
namespace Catch {
struct MessageInfo {
MessageInfo( StringRef const& _macroName,
MessageInfo( StringRef _macroName,
SourceLineInfo const& _lineInfo,
ResultWas::OfType _type );