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
+3 -3
View File
@@ -124,13 +124,13 @@ int main( int argc, char *argv[] )
}
client.shutdown();
} catch ( Network::NetworkException e ) {
} catch ( const Network::NetworkException& e ) {
fprintf( stderr, "Network exception: %s: %s\r\n",
e.function.c_str(), strerror( e.the_errno ) );
} catch ( Crypto::CryptoException e ) {
} catch ( const Crypto::CryptoException& e ) {
fprintf( stderr, "Crypto exception: %s\r\n",
e.text.c_str() );
} catch ( std::string s ) {
} catch ( const std::string& s ) {
fprintf( stderr, "Error: %s\r\n", s.c_str() );
}