Catch exceptions by reference

Found by cppcheck.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-02-18 02:04:44 -05:00
committed by Keith Winstein
parent 5365d6b21d
commit e2abb8524f
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ int main( int argc, char *argv[] )
cerr << "Key: " << key.printable_key() << endl;
cout << ciphertext;
} catch ( CryptoException e ) {
} catch ( const CryptoException &e ) {
cerr << e.text << endl;
exit( 1 );
}