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

const'ify variable

parent 7089b95f
Pipeline #174959 passed with stage
in 20 minutes and 27 seconds
......@@ -81,7 +81,7 @@ private:
private:
Akonadi_Maildir_Resource::MaildirSettings *mSettings = nullptr;
KDirWatch *mFsWatcher = nullptr;
KDirWatch *const mFsWatcher;
QHash<QString, KPIM::Maildir> mMaildirsForCollection;
QSet<QString> mChangedFiles; // files changed by the resource and that should be ignored in slotFileChanged
QTimer *mChangedCleanerTimer = nullptr;
......
......@@ -22,11 +22,6 @@ RetrieveItemsJob::RetrieveItemsJob(const Akonadi::Collection &collection, const
, m_collection(collection)
, m_maildir(md)
, m_mimeType(KMime::Message::mimeType())
, m_transaction(nullptr)
, m_transactionSize(0)
, m_entryIterator(nullptr)
, m_previousMtime(0)
, m_highestMtime(0)
{
Q_ASSERT(m_collection.isValid());
Q_ASSERT(m_maildir.isValid());
......
......@@ -43,14 +43,14 @@ private Q_SLOTS:
void processEntryDone(KJob *);
private:
Akonadi::Collection m_collection;
const Akonadi::Collection m_collection;
KPIM::Maildir m_maildir;
QHash<QString, Akonadi::Item> m_localItems;
QString m_mimeType;
Akonadi::TransactionSequence *m_transaction = nullptr;
int m_transactionSize;
int m_transactionSize = 0;
QDirIterator *m_entryIterator = nullptr;
qint64 m_previousMtime;
qint64 m_highestMtime;
qint64 m_previousMtime = 0;
qint64 m_highestMtime = 0;
QString m_listingPath;
};
Supports Markdown
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