Commit 22551eb5 authored by Sergio Martins's avatar Sergio Martins
Browse files

Avoid QLatin1String wherever it allocates heap memory

parent 7a126e56
......@@ -375,7 +375,7 @@ void LdapConfigWidget::Private::sendQuery()
void LdapConfigWidget::Private::queryMechClicked()
{
mAttr = QLatin1String("supportedsaslmechanisms");
mAttr = QStringLiteral("supportedsaslmechanisms");
sendQuery();
if (!mQResult.isEmpty()) {
mQResult.sort();
......@@ -386,7 +386,7 @@ void LdapConfigWidget::Private::queryMechClicked()
void LdapConfigWidget::Private::queryDNClicked()
{
mAttr = QLatin1String("namingcontexts");
mAttr = QStringLiteral("namingcontexts");
sendQuery();
if (!mQResult.isEmpty()) {
mDn->setText(mQResult.first());
......
......@@ -256,7 +256,7 @@ int LdapConnection::connect()
int version = d->mServer.version();
int timeout = d->mServer.timeout();
url = d->mServer.security() == LdapServer::SSL ? QLatin1String("ldaps") : QLatin1String("ldap");
url = d->mServer.security() == LdapServer::SSL ? QStringLiteral("ldaps") : QStringLiteral("ldap");
url += QLatin1String("://");
url += d->mServer.host();
url += QLatin1Char(':');
......
......@@ -254,7 +254,7 @@ void LdapUrl::parseQuery()
d->m_attributes.clear();
d->m_scope = Base;
d->m_filter = QLatin1String("(objectClass=*)");
d->m_filter = QStringLiteral("(objectClass=*)");
d->m_extensions.clear();
int i = 0;
......
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