Commit 6c2a090d authored by Laurent Montel's avatar Laurent Montel 😁

Rename variables

parent 27084b57
......@@ -27,8 +27,8 @@
using namespace KPIM;
AddresseeLineEditLdap::AddresseeLineEditLdap(AddresseeLineEditStatic *addressLineStatic)
: ldapTimer(nullptr)
, ldapSearch(nullptr)
: mLdapTimer(nullptr)
, mLdapSearch(nullptr)
, mAddressLineStatic(addressLineStatic)
{
......@@ -43,13 +43,13 @@ void AddresseeLineEditLdap::updateLDAPWeights()
{
/* Add completion sources for all ldap server, 0 to n. Added first so
* that they map to the LdapClient::clientNumber() */
ldapSearch->updateCompletionWeights();
mLdapSearch->updateCompletionWeights();
int clientIndex = 0;
for (const KLDAP::LdapClient *client : ldapSearch->clients()) {
for (const KLDAP::LdapClient *client : mLdapSearch->clients()) {
const int sourceIndex
= mAddressLineStatic->addCompletionSource(i18n("LDAP server: %1", client->server().host()),
client->completionWeight());
ldapClientToCompletionSourceMap.insert(clientIndex, sourceIndex);
mLdapClientToCompletionSourceMap.insert(clientIndex, sourceIndex);
++clientIndex;
}
}
......@@ -41,11 +41,11 @@ public:
// maps LDAP client indices to completion source indices
// the assumption that they are always the first n indices in s_static->completion
// does not hold when clients are added later on
QMap<int, int> ldapClientToCompletionSourceMap;
QMap<int, int> mLdapClientToCompletionSourceMap;
QTimer *ldapTimer;
KLDAP::LdapClientSearch *ldapSearch;
QTimer *mLdapTimer;
KLDAP::LdapClientSearch *mLdapSearch;
private:
AddresseeLineEditStatic *mAddressLineStatic;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment