diff options
| author | Martin Hořeňovský | 2023-03-11 16:14:06 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-03-11 16:14:06 +0100 |
| commit | 13fae1e2ff9939d03bb8a5a6f3341538d4127dc5 (patch) | |
| tree | 776477bf31e1a1b5266c5c5f05fd9e77e0c62b6a /src/catch2/internal/catch_run_context.cpp | |
| parent | 3220ae6d4aff68edb27fa6b34d2e4f909a770e19 (diff) | |
| download | catch3-13fae1e2ff9939d03bb8a5a6f3341538d4127dc5.tar.gz | |
Move exception's translation into AssertionResultData message
Diffstat (limited to 'src/catch2/internal/catch_run_context.cpp')
| -rw-r--r-- | src/catch2/internal/catch_run_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_run_context.cpp b/src/catch2/internal/catch_run_context.cpp index 08086b28..e9cb025e 100644 --- a/src/catch2/internal/catch_run_context.cpp +++ b/src/catch2/internal/catch_run_context.cpp @@ -619,13 +619,13 @@ namespace Catch { void RunContext::handleUnexpectedInflightException( AssertionInfo const& info, - std::string const& message, + std::string&& message, AssertionReaction& reaction ) { m_lastAssertionInfo = info; AssertionResultData data( ResultWas::ThrewException, LazyExpression( false ) ); - data.message = message; + data.message = CATCH_MOVE(message); AssertionResult assertionResult{ info, CATCH_MOVE(data) }; assertionEnded( assertionResult ); populateReaction( reaction ); |