loplugin:oncevar

Change-Id: Ic7c5ec9bb7cc7aff61279f2027cf5a9e1b31e36f
This commit is contained in:
Tor Lillqvist
2017-07-18 20:47:16 +03:00
parent a4283e5b7b
commit e19c0a3dec

View File

@@ -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(