diff options
| author | Martin Hořeňovský | 2024-09-13 13:42:03 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-09-13 16:39:51 +0200 |
| commit | 412cad546a89cda9eaa8ef77d8161b719182cc9e (patch) | |
| tree | dafc5cbabcf0959a882f5888f9bed060396d6ef7 /src/catch2/internal/catch_assertion_handler.hpp | |
| parent | bd70515c0831bb741eb1865e9ed31d321417d735 (diff) | |
| download | catch3-412cad546a89cda9eaa8ef77d8161b719182cc9e.tar.gz | |
Avoid needless copy of string in runContext::handleMessage
Diffstat (limited to 'src/catch2/internal/catch_assertion_handler.hpp')
| -rw-r--r-- | src/catch2/internal/catch_assertion_handler.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_assertion_handler.hpp b/src/catch2/internal/catch_assertion_handler.hpp index 01dd7801..098ed7a9 100644 --- a/src/catch2/internal/catch_assertion_handler.hpp +++ b/src/catch2/internal/catch_assertion_handler.hpp @@ -47,7 +47,7 @@ namespace Catch { } void handleExpr( ITransientExpression const& expr ); - void handleMessage(ResultWas::OfType resultType, StringRef message); + void handleMessage(ResultWas::OfType resultType, std::string&& message); void handleExceptionThrownAsExpected(); void handleUnexpectedExceptionNotThrown(); |