From 5d84f04ae3c0e70dadfa37e02ac49264d68587a7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 9 Apr 2016 19:18:57 -0400 Subject: [PATCH] Constify caught exceptions --- datatest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datatest.cpp b/datatest.cpp index ecd5e833..888e4af7 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -782,15 +782,15 @@ void TestDataFile(std::string filename, const NameValuePairs &overrideParameters SignalTestError(); failed = false; } - catch (TestFailure &) + catch (const TestFailure &) { cout << "\nTest failed.\n"; } - catch (CryptoPP::Exception &e) + catch (const CryptoPP::Exception &e) { cout << "\nCryptoPP::Exception caught: " << e.what() << endl; } - catch (std::exception &e) + catch (const std::exception &e) { cout << "\nstd::exception caught: " << e.what() << endl; }