Commit f759cb9a 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 bc533fd3
......@@ -457,7 +457,7 @@ void URLHandlerManager::BodyPartURLHandlerManager::unregisterHandler(
static KMime::Content *partNodeFromXKMailUrl(const QUrl &url, ViewerPrivate *w, QString *path)
{
assert(path);
Q_ASSERT(path);
if (!w || url.scheme() != QLatin1String("x-kmail")) {
return nullptr;
......@@ -1138,7 +1138,7 @@ static QString extractAuditLog(const QUrl &url)
return QString();
}
QUrlQuery query(url);
assert(!query.queryItemValue(QStringLiteral("log")).isEmpty());
Q_ASSERT(!query.queryItemValue(QStringLiteral("log")).isEmpty());
return query.queryItemValue(QStringLiteral("log"));
}
......
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