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

Minor optimization

parent adc82eee
Pipeline #42636 passed with stage
in 8 minutes and 38 seconds
......@@ -105,9 +105,7 @@ void LdapClient::setScope(const QString &scope)
void LdapClient::startQuery(const QString &filter)
{
cancelQuery();
KLDAP::LdapUrl url;
url = d->mServer.url();
KLDAP::LdapUrl url{d->mServer.url()};
url.setAttributes(d->mAttrs);
url.setScope(d->mScope == QLatin1String("one") ? KLDAP::LdapUrl::One : KLDAP::LdapUrl::Sub);
......
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