summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-09 19:18:57 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-09 19:18:57 -0400
commit5d84f04ae3c0e70dadfa37e02ac49264d68587a7 (patch)
tree09ebe91df23933f97555018f35f18342e5b3e99a /datatest.cpp
parent6f8abd089cb9b0833c1b932d55670ce19089642f (diff)
downloadcryptopp-git-5d84f04ae3c0e70dadfa37e02ac49264d68587a7.tar.gz
Constify caught exceptions
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp6
1 files 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;
}