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

Fix clazy warning

parent 5e062376
Pipeline #78198 passed with stage
in 6 minutes and 7 seconds
......@@ -46,7 +46,7 @@ void FilterActionJob::Private::fetchResult(KJob *job)
return;
}
auto fjob = dynamic_cast<ItemFetchJob *>(job);
auto fjob = qobject_cast<ItemFetchJob *>(job);
Q_ASSERT(fjob);
Q_ASSERT(items.isEmpty());
items = fjob->items();
......
......@@ -49,7 +49,8 @@ QVector<MailTransport::TransportAbstractPluginInfo> AkonadiMailTransportPlugin::
{
QVector<MailTransport::TransportAbstractPluginInfo> lst;
for (const AgentType &atype : AgentManager::self()->types()) {
const auto types{AgentManager::self()->types()};
for (const AgentType &atype : types) {
// TODO probably the string "MailTransport" should be #defined somewhere
// and used like that in the resources (?)
if (atype.capabilities().contains(QLatin1String("MailTransport"))) {
......
......@@ -127,7 +127,9 @@ MessageQueueJob *MessageQueuer::createQueueJob()
job->addressAttribute().setBcc(mBccEdit->text().isEmpty() ? QStringList() : mBccEdit->text().split(QLatin1Char(',')));
connect(job, &MessageQueueJob::result, this, &MessageQueuer::jobResult);
connect(job, SIGNAL(percent(KJob *, ulong)), SLOT(jobPercent(KJob *, ulong)));
// clang-format off
connect(job, SIGNAL(percent(KJob*, ulong)), SLOT(jobPercent(KJob*, ulong)));
// clang-format on
connect(job, &KJob::infoMessage, this, &MessageQueuer::jobInfoMessage);
return job;
......
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