Translate exceptions by const reference instead of plain ref

This commit is contained in:
Martin Hořeňovský
2020-05-19 21:23:35 +02:00
parent 4b2f1da02a
commit 4394d3ae65
3 changed files with 8 additions and 8 deletions

View File

@@ -122,15 +122,15 @@ TEST_CASE( "When unchecked exceptions are thrown, but caught, they do not affect
}
CATCH_TRANSLATE_EXCEPTION( CustomException& ex ) {
CATCH_TRANSLATE_EXCEPTION( CustomException const& ex ) {
return ex.getMessage();
}
CATCH_TRANSLATE_EXCEPTION( CustomStdException& ex ) {
CATCH_TRANSLATE_EXCEPTION( CustomStdException const& ex ) {
return ex.getMessage();
}
CATCH_TRANSLATE_EXCEPTION( double& ex ) {
CATCH_TRANSLATE_EXCEPTION( double const& ex ) {
return Catch::Detail::stringify( ex );
}