[Libreoffice-commits] core.git: ucb/source

Tor Lillqvist tml at collabora.com
Tue Jul 18 18:29:26 UTC 2017


 ucb/source/ucp/webdav-neon/NeonSession.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e19c0a3dec7ac9809aba461c03d45a07d601fe9a
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Jul 18 20:47:16 2017 +0300

    loplugin:oncevar
    
    Change-Id: Ic7c5ec9bb7cc7aff61279f2027cf5a9e1b31e36f

diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 74bb47622524..ca87d6e4aad3 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -291,14 +291,14 @@ extern "C" int NeonSession_NeonAuth( void *       inUserData,
         //thePassWord = OUString::createFromAscii( inoutPassWord );
     }
 
-    bool bCanUseSystemCreds = false;
-
 #if defined NE_FEATURE_SSPI && ! defined SYSTEM_NEON
-    bCanUseSystemCreds
+    const bool bCanUseSystemCreds
         = (attempt == 0) && // avoid endless loops
           ne_has_support( NE_FEATURE_SSPI ) && // Windows-only feature.
           ( ( ne_strcasecmp( inAuthProtocol, "NTLM" ) == 0 ) ||
             ( ne_strcasecmp( inAuthProtocol, "Negotiate" ) == 0 ) );
+#else
+    const bool bCanUseSystemCreds = false;
 #endif
 
     int theRetVal = pListener->authenticate(


More information about the Libreoffice-commits mailing list