diff --git a/config/catch/CatchFakeit.hpp b/config/catch/CatchFakeit.hpp index 104cfce7..616a369d 100644 --- a/config/catch/CatchFakeit.hpp +++ b/config/catch/CatchFakeit.hpp @@ -49,18 +49,18 @@ namespace fakeit { INTERNAL_CATCH_TRY { \ CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ - catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \ + catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage)); \ CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \ } INTERNAL_CATCH_CATCH(catchAssertionHandler) { \ - INTERNAL_CATCH_REACT(catchAssertionHandler) \ + catchAssertionHandler.complete(); \ } #else INTERNAL_CATCH_TRY { \ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ - catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \ + catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage)); \ CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \ } INTERNAL_CATCH_CATCH(catchAssertionHandler) { \ - INTERNAL_CATCH_REACT(catchAssertionHandler) \ + catchAssertionHandler.complete(); \ } #endif } diff --git a/single_header/catch/fakeit.hpp b/single_header/catch/fakeit.hpp index 90468539..ab02fcf0 100644 --- a/single_header/catch/fakeit.hpp +++ b/single_header/catch/fakeit.hpp @@ -1207,18 +1207,18 @@ namespace fakeit { INTERNAL_CATCH_TRY { \ CATCH_INTERNAL_START_WARNINGS_SUPPRESSION \ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ - catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \ + catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage); \ CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION \ } INTERNAL_CATCH_CATCH(catchAssertionHandler) { \ - INTERNAL_CATCH_REACT(catchAssertionHandler) \ + catchAssertionHandler.complete(); \ } #else INTERNAL_CATCH_TRY { \ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ - catchAssertionHandler.handleMessage(resultWas, fomattedMessage); \ + catchAssertionHandler.handleMessage(resultWas, std::move(fomattedMessage)); \ CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \ } INTERNAL_CATCH_CATCH(catchAssertionHandler) { \ - INTERNAL_CATCH_REACT(catchAssertionHandler) \ + catchAssertionHandler.complete(); \ } #endif }