mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 22:19:25 +00:00
Address more of PVS studio warnings
This commit is contained in:
parent
46bf7605f4
commit
b6f62af7d1
4 changed files with 7 additions and 7 deletions
|
@ -91,7 +91,7 @@ namespace Catch {
|
|||
std::string actualMessage = Catch::translateActiveException();
|
||||
if( !matcher.match( actualMessage ) ) {
|
||||
data.resultType = ResultWas::ExpressionFailed;
|
||||
data.reconstructedExpression = actualMessage;
|
||||
data.reconstructedExpression = std::move(actualMessage);
|
||||
}
|
||||
AssertionResult result( m_assertionInfo, data );
|
||||
handleResult( result );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue