Translate exceptions by const reference instead of plain ref

This commit is contained in:
Martin Hořeňovský committed 2020-05-20 08:15:27 +02:00
1 parent 4b2f1da02a
commit 4394d3ae65
3 files changed
+8 -8

No files matched your search

@@ -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 );
}