Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Fix some warnings

parent 6dfafa61
......@@ -32,9 +32,9 @@ class Q_DECL_HIDDEN Akonadi::RemoveDuplicatesJob::Private
{
public:
Private(RemoveDuplicatesJob *parent)
: mJobCount(0)
: mCurrentJob(nullptr)
, mJobCount(0)
, mKilled(false)
, mCurrentJob(nullptr)
, mParent(parent)
{
}
......@@ -149,10 +149,10 @@ public:
}
Akonadi::Collection::List mFolders;
int mJobCount;
Akonadi::Item::List mDuplicateItems;
bool mKilled = false;
Akonadi::Job *mCurrentJob = nullptr;
int mJobCount;
bool mKilled = false;
private:
RemoveDuplicatesJob *mParent = nullptr;
......
......@@ -31,29 +31,21 @@ static inline QByteArray enumToType(SpecialMailCollections::Type type)
switch (type) {
case SpecialMailCollections::Root:
return "local-mail";
break;
case SpecialMailCollections::Inbox:
return "inbox";
break;
case SpecialMailCollections::Outbox:
return "outbox";
break;
case SpecialMailCollections::SentMail:
return "sent-mail";
break;
case SpecialMailCollections::Trash:
return "trash";
break;
case SpecialMailCollections::Drafts:
return "drafts";
break;
case SpecialMailCollections::Templates:
return "templates";
break;
case SpecialMailCollections::LastType: // fallthrough
default:
return QByteArray();
break;
}
}
......
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