Catch by const reference (remove Eclipse warnings)

(closes #245)
This commit is contained in:
Massimo Gengarelli
2012-04-19 21:33:11 +02:00
committed by Keith Winstein
parent fb6d07e566
commit 49fc21c8a3
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ void test_bad_decrypt( Session &decryption_session ) {
bool got_exn = false;
try {
decryption_session.decrypt( bad_ct );
} catch ( CryptoException e ) {
} catch ( const CryptoException& e ) {
got_exn = true;
/* The "bad decrypt" exception needs to be non-fatal, otherwise we are
@@ -128,7 +128,7 @@ int main( int argc, char *argv[] ) {
for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
try {
test_one_session();
} catch ( CryptoException e ) {
} catch ( const CryptoException& e ) {
fprintf( stderr, "Crypto exception: %s\r\n",
e.text.c_str() );
fatal_assert( false );