Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit a2a02e40 authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning found by clazy

parent 16ed8e72
......@@ -234,7 +234,8 @@ public:
void saveTemplates(KConfig *configFile)
// clear everything
for (const QString &group : configFile->groupList()) {
const QStringList lst = configFile->groupList();
for (const QString &group : lst) {
int numberOfTemplate = 0;
......@@ -111,7 +111,7 @@ bool AclModifyJob::canAdministrate(PimCommon::ImapAclAttribute *attribute, const
return rights[ imapUserName.toUtf8() ] & KIMAP::Acl::Admin;
void AclModifyJob::changeAcl(Akonadi::Collection collection)
void AclModifyJob::changeAcl(const Akonadi::Collection &collection)
if (collection.hasAttribute<PimCommon::ImapAclAttribute>()) {
PimCommon::ImapAclAttribute *attribute = collection.attribute<PimCommon::ImapAclAttribute>();
......@@ -42,7 +42,7 @@ private:
void slotModifyDone(KJob *job);
void slotFetchCollectionFinished(const Akonadi::Collection::List &collectionList);
void slotFetchCollectionFailed();
void changeAcl(Akonadi::Collection collection);
void changeAcl(const Akonadi::Collection &collection);
void checkNewCollection();
bool canAdministrate(PimCommon::ImapAclAttribute *attribute, const Akonadi::Collection &collection) const;
Akonadi::Collection mTopLevelCollection;
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