Commit 87a4b4a8 authored by Laurent Montel's avatar Laurent Montel 😁

Fix some warnings

parent efb56a36
......@@ -3449,7 +3449,6 @@ void KMComposerWin::slotKeyForMailBoxResult(const GpgME::KeyListResult &, const
break;
case GpgME::UserID::Undefined:
case GpgME::UserID::Unknown:
default:
overlay = QIcon::fromTheme(QStringLiteral("emblem-information"));
tooltip = i18n("The email to this recipient will be encrypted, but the security of the encryption is unknown "
"(the encryption key could not be verified). Click the icon for details.");
......
......@@ -127,9 +127,9 @@ void NewIdentityDialog::slotHelp()
NewIdentityDialog::DuplicateMode NewIdentityDialog::duplicateMode() const
{
const int id = mButtonGroup->checkedId();
assert(id == (int)Empty
|| id == (int)ControlCenter
|| id == (int)ExistingEntry);
assert(id == static_cast<int>(Empty)
|| id == static_cast<int>(ControlCenter)
|| id == static_cast<int>(ExistingEntry));
return static_cast<DuplicateMode>(id);
}
......
......@@ -1100,7 +1100,7 @@ void KMKernel::cleanup()
OrgFreedesktopAkonadiMailFilterAgentInterface mailFilterInterface(QStringLiteral("org.freedesktop.Akonadi.MailFilterAgent"), QStringLiteral(
"/MailFilterAgent"), QDBusConnection::sessionBus(), this);
if (mailFilterInterface.isValid()) {
mailFilterInterface.expunge((qlonglong)trashCollection.id());
mailFilterInterface.expunge(static_cast<qlonglong>(trashCollection.id()));
} else {
qCWarning(KMAIL_LOG) << "Mailfilter is not active";
}
......
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