Commit e217759d authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Fix 'lambda-expression in unevaluated context' error

We should be using Q_ASSERT anyway...
parent 7b1d025c
......@@ -24,7 +24,6 @@
#include <QEventLoop>
#include <assert.h>
#include <stdlib.h>
#include <QApplication>
#include <KAboutData>
......@@ -176,10 +175,10 @@ void TestLDAPClient::slotLDAPResult(const KLDAP::LdapClient &, const KLDAP::Ldap
{
QString cn = join(obj.attributes()[ QStringLiteral("cn") ], QStringLiteral(", "));
qDebug() << " cn:" << cn;
assert(!obj.attributes()[ QStringLiteral("mail") ].isEmpty());
Q_ASSERT(!obj.attributes()[ QStringLiteral("mail") ].isEmpty());
QString mail = join(obj.attributes()[ QStringLiteral("mail") ], QStringLiteral(", "));
qDebug() << " mail:" << mail;
assert(mail.contains(QLatin1Char('@')));
Q_ASSERT(mail.contains(QLatin1Char('@')));
}
void TestLDAPClient::slotLDAPError(const QString &err)
......
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