From a6bb2256802b53d481261f24439c9bc9de7f4136 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 2 Mar 2016 07:35:05 +0100 Subject: [PATCH 32/37] coverity: honor exception specs --- src/libcmis/http-session.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/libcmis/http-session.cxx b/src/libcmis/http-session.cxx index 47fff50..79b5f86 100644 --- a/src/libcmis/http-session.cxx +++ b/src/libcmis/http-session.cxx @@ -699,13 +699,12 @@ void HttpSession::oauth2Authenticate( ) throw ( libcmis::Exception ) m_inOAuth2Authentication = true; - // Try to get the authentication code using the given provider. - authCode = m_oauth2Handler->oauth2Authenticate( ); - - - // If that didn't work, call the fallback provider from SessionFactory try { + // Try to get the authentication code using the given provider. + authCode = m_oauth2Handler->oauth2Authenticate( ); + + // If that didn't work, call the fallback provider from SessionFactory if ( authCode.empty( ) ) { libcmis::OAuth2AuthCodeProvider fallbackProvider = libcmis::SessionFactory::getOAuth2AuthCodeProvider( ); -- 2.5.0