Commit 224c6f99 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent f2a60fdd
Pipeline #29693 passed with stage
in 9 minutes and 31 seconds
......@@ -98,7 +98,7 @@ bool FilterKMailArchive::importFolder(const KArchiveDirectory *folder, const QSt
const QStringList lstEntries = messageDir->entries();
for (const QString &entryName : lstEntries) {
filterInfo()->setCurrent(cur * 100 / total);
filterInfo()->setOverall(d->mFilesDone * 100 / d->mTotalFiles);
filterInfo()->setOverall(d->mTotalFiles == 0 ? 0 : (d->mFilesDone * 100 / d->mTotalFiles));
const KArchiveEntry *const entry = messageDir->entry(entryName);
if (entry->isFile()) {
......
......@@ -168,7 +168,7 @@ void FilterPMail::importMailFolder(const QString &file)
folder.append(QString::fromLatin1(pmm_head.folder));
}
filterInfo()->setTo(folder);
filterInfo()->addInfoLogEntry(i18n("Importing %1", QString::fromLatin1("../") + QString::fromLatin1(pmm_head.folder)));
filterInfo()->addInfoLogEntry(i18n("Importing %1", QStringLiteral("../") + QString::fromLatin1(pmm_head.folder)));
QByteArray input(MAX_LINE, '\0');
bool first_msg = true;
......
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