You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
From a6bb2256802b53d481261f24439c9bc9de7f4136 Mon Sep 17 00:00:00 2001
|
|
From: David Tardon <dtardon@redhat.com>
|
|
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
|
|
|