diff options
author | Vincent Richard <[email protected]> | 2014-01-19 22:27:37 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-01-19 22:27:37 +0000 |
commit | 6c9a32d314da1466a2d30f3b7293b740774ba803 (patch) | |
tree | 8647dab9aeefab2c81fbf67810b4ac2f5c364c9b | |
parent | SASL is the only authentication method supported in SMTP (no fallback). (diff) | |
download | vmime-6c9a32d314da1466a2d30f3b7293b740774ba803.tar.gz vmime-6c9a32d314da1466a2d30f3b7293b740774ba803.zip |
Use appropriate syntax for rethrowing exceptions.
-rw-r--r-- | src/vmime/net/imap/IMAPConnection.cpp | 8 | ||||
-rw-r--r-- | src/vmime/net/pop3/POP3Connection.cpp | 8 | ||||
-rw-r--r-- | src/vmime/net/smtp/SMTPConnection.cpp | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/vmime/net/imap/IMAPConnection.cpp b/src/vmime/net/imap/IMAPConnection.cpp index 7a90b142..5e6f6f8f 100644 --- a/src/vmime/net/imap/IMAPConnection.cpp +++ b/src/vmime/net/imap/IMAPConnection.cpp @@ -234,23 +234,23 @@ void IMAPConnection::authenticate() authenticateSASL(); return; } - catch (exceptions::authentication_error& e) + catch (exceptions::authentication_error&) { if (!GET_PROPERTY(bool, PROPERTY_OPTIONS_SASL_FALLBACK)) { // Can't fallback on normal authentication internalDisconnect(); - throw e; + throw; } else { // Ignore, will try normal authentication } } - catch (exception& e) + catch (exception&) { internalDisconnect(); - throw e; + throw; } } #endif // VMIME_HAVE_SASL_SUPPORT diff --git a/src/vmime/net/pop3/POP3Connection.cpp b/src/vmime/net/pop3/POP3Connection.cpp index 283cc91b..f5a1a448 100644 --- a/src/vmime/net/pop3/POP3Connection.cpp +++ b/src/vmime/net/pop3/POP3Connection.cpp @@ -233,23 +233,23 @@ void POP3Connection::authenticate(const messageId& randomMID) m_authenticated = true; return; } - catch (exceptions::authentication_error& e) + catch (exceptions::authentication_error&) { if (!GET_PROPERTY(bool, PROPERTY_OPTIONS_SASL_FALLBACK)) { // Can't fallback on APOP/normal authentication internalDisconnect(); - throw e; + throw; } else { // Ignore, will try APOP/normal authentication } } - catch (exception& e) + catch (exception&) { internalDisconnect(); - throw e; + throw; } } #endif // VMIME_HAVE_SASL_SUPPORT diff --git a/src/vmime/net/smtp/SMTPConnection.cpp b/src/vmime/net/smtp/SMTPConnection.cpp index bb5e3c2e..a45f9149 100644 --- a/src/vmime/net/smtp/SMTPConnection.cpp +++ b/src/vmime/net/smtp/SMTPConnection.cpp @@ -294,10 +294,10 @@ void SMTPConnection::authenticate() m_authenticated = true; return; } - catch (exception& e) + catch (exception&) { internalDisconnect(); - throw e; + throw; } } #endif // VMIME_HAVE_SASL_SUPPORT |