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

Fix some clazy warning

parent 0d66753c
Pipeline #22613 passed with stage
in 28 minutes and 27 seconds
......@@ -2593,7 +2593,7 @@ void KMComposerWin::slotPrintComposeResult(KJob *job)
void KMComposerWin::printComposeResult(KJob *job, bool preview)
{
Q_ASSERT(dynamic_cast< MessageComposer::Composer * >(job));
MessageComposer::Composer *composer = dynamic_cast< MessageComposer::Composer * >(job);
MessageComposer::Composer *composer = qobject_cast< MessageComposer::Composer * >(job);
Q_ASSERT(mMiscComposers.contains(composer));
mMiscComposers.removeAll(composer);
......
......@@ -258,7 +258,7 @@ void KMCommand::start()
}
// Special case of operating on message that isn't in a folder
const Akonadi::Item mb = mMsgList.first();
const Akonadi::Item mb = mMsgList.constFirst();
if ((mMsgList.count() == 1) && MessageComposer::Util::isStandaloneMessage(mb)) {
mRetrievedMsgs.append(mMsgList.takeFirst());
Q_EMIT messagesTransfered(OK);
......@@ -1200,7 +1200,7 @@ KMCommand::Result KMSetStatusCommand::execute()
}
}
Akonadi::Item item(it);
const Akonadi::Item::Flag flag = *(mStatus.statusFlags().begin());
const Akonadi::Item::Flag flag = *(mStatus.statusFlags().constBegin());
if (mInvertMark) {
if (item.hasFlag(flag)) {
item.clearFlag(flag);
......
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