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

const'ify variable

parent aed32f41
......@@ -41,7 +41,7 @@ void FolderArchiveAgentJob::start()
auto fetchCollection = new Akonadi::CollectionFetchJob(Akonadi::Collection(mInfo->archiveTopLevel()), Akonadi::CollectionFetchJob::Base);
connect(fetchCollection, &Akonadi::CollectionFetchJob::result, this, &FolderArchiveAgentJob::slotFetchCollection);
} else {
Akonadi::Collection::Id id = mManager->folderArchiveCache()->collectionId(mInfo);
const Akonadi::Collection::Id id = mManager->folderArchiveCache()->collectionId(mInfo);
if (id != -1) {
auto fetchCollection = new Akonadi::CollectionFetchJob(Akonadi::Collection(id), Akonadi::CollectionFetchJob::Base);
connect(fetchCollection, &Akonadi::CollectionFetchJob::result, this, &FolderArchiveAgentJob::slotFetchCollection);
......
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