summaryrefslogtreecommitdiff
path: root/extensions/source/config
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 15:09:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-28 08:32:56 +0200
commit3a36cf434fb4a967c9ea767cb7ac5f4da0502a0d (patch)
treeab1747ff3e977ad322cf05b68626879f2c68e6e0 /extensions/source/config
parent74ccd02eda2d6325a27266fd935aba29b3d75020 (diff)
loplugin:checkunusedparams in configmgr and vcl
Change-Id: I7226d01f38e6edaf3868d7267d9b02dbdbc9e5ba Reviewed-on: https://gerrit.libreoffice.org/36975 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/config')
-rw-r--r--extensions/source/config/ldap/ldapaccess.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx
index 522c095026ab..5d2982315f25 100644
--- a/extensions/source/config/ldap/ldapaccess.cxx
+++ b/extensions/source/config/ldap/ldapaccess.cxx
@@ -61,8 +61,7 @@ void LdapConnection::disconnect()
static void checkLdapReturnCode(const sal_Char *aOperation,
- LdapErrCode aRetCode,
- LDAP * /*aConnection*/)
+ LdapErrCode aRetCode)
{
if (aRetCode == LDAP_SUCCESS) { return ; }
@@ -140,7 +139,7 @@ void LdapConnection::connectSimple()
OUStringToOString( mLdapDefinition.mAnonCredentials, RTL_TEXTENCODING_UTF8 ).getStr()) ;
#endif
- checkLdapReturnCode("SimpleBind", retCode, mConnection) ;
+ checkLdapReturnCode("SimpleBind", retCode) ;
}
}
@@ -194,7 +193,7 @@ void LdapConnection::initConnection()
0, // Attributes + values
&result.msg) ;
#endif
- checkLdapReturnCode("getUserProfile", retCode,mConnection) ;
+ checkLdapReturnCode("getUserProfile", retCode) ;
BerElement * ptr;
#ifdef _WIN32
@@ -256,7 +255,7 @@ void LdapConnection::initConnection()
LDAP_SCOPE_SUBTREE,
OUStringToOString( filter.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ).getStr(), attributes, 0, &result.msg) ;
#endif
- checkLdapReturnCode("FindUserDn", retCode,mConnection) ;
+ checkLdapReturnCode("FindUserDn", retCode) ;
OUString userDn ;
LDAPMessage *entry = ldap_first_entry(mConnection, result.msg) ;