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

Fix clazy warning

parent 816afafd
Pipeline #22915 passed with stage
in 18 minutes and 31 seconds
......@@ -141,7 +141,7 @@ void MarkAsCommand::execute()
if (KMessageBox::questionYesNo(qobject_cast<QWidget *>(parent()),
i18n("Are you sure you want to mark all messages in this folder and all its subfolders?"),
i18n("Mark All Recursively")) == KMessageBox::Yes) {
Akonadi::CollectionFetchJob *job = new Akonadi::CollectionFetchJob(d->mFolders.first());
Akonadi::CollectionFetchJob *job = new Akonadi::CollectionFetchJob(d->mFolders.constFirst());
connect(job, &Akonadi::CollectionFetchJob::result, this, &MarkAsCommand::slotCollectionFetchDone);
} else {
emitResult(Canceled);
......
......@@ -84,7 +84,7 @@ void MoveToTrashCommand::execute()
void MoveToTrashCommand::moveMessages()
{
Akonadi::Collection folder = mFolders[mFolderListJobCount];
const Akonadi::Collection folder = mFolders.at(mFolderListJobCount);
if (folder.isValid()) {
MoveCommand *moveCommand = new MoveCommand(findTrashFolder(folder), mMessages, this);
connect(moveCommand, &MoveCommand::result, this, &MoveToTrashCommand::slotMoveDone);
......
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