Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/Exception.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-19 21:23:35 +0200
committerMartin Hořeňovský2020-05-20 08:15:27 +0200
commit4394d3ae65e076c749dc95a27f3178b94ba09e94 (patch)
tree910c1ab3aa13847da7a5dacef60a258483337e8d /tests/SelfTest/UsageTests/Exception.tests.cpp
parent4b2f1da02a37d111b572551f4bd8ed765b06ca28 (diff)
downloadcatch3-4394d3ae65e076c749dc95a27f3178b94ba09e94.tar.gz
Translate exceptions by const reference instead of plain ref
Diffstat (limited to 'tests/SelfTest/UsageTests/Exception.tests.cpp')
-rw-r--r--tests/SelfTest/UsageTests/Exception.tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SelfTest/UsageTests/Exception.tests.cpp b/tests/SelfTest/UsageTests/Exception.tests.cpp
index f8c628b9..1f6b4fa2 100644
--- a/tests/SelfTest/UsageTests/Exception.tests.cpp
+++ b/tests/SelfTest/UsageTests/Exception.tests.cpp
@@ -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 );
}