Commit c4f2ef23 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent a1b3b61b
Pipeline #42575 canceled with stage
......@@ -114,7 +114,7 @@ void LdapClientSearch::Private::readWeighForClient(LdapClient *client, const KCo
void LdapClientSearch::updateCompletionWeights()
{
KConfigGroup config(KLDAP::LdapClientSearchConfig::config(), "LDAP");
for (int i = 0; i < d->mClients.size(); ++i) {
for (int i = 0, total = d->mClients.size(); i < total; ++i) {
d->readWeighForClient(d->mClients[ i ], config, i);
}
}
......
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