Commit 2107f115 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent 4b04c872
Pipeline #32655 passed with stage
in 37 minutes and 38 seconds
...@@ -220,8 +220,8 @@ private: ...@@ -220,8 +220,8 @@ private:
private: private:
KContacts::Addressee mSearchedAddress; KContacts::Addressee mSearchedAddress;
Akonadi::Item mSearchedContact; Akonadi::Item mSearchedContact;
QWidget *mMainWindow = nullptr; QWidget *const mMainWindow;
KActionCollection *mActionCollection = nullptr; KActionCollection *const mActionCollection;
QAction *mMailToComposeAction = nullptr; QAction *mMailToComposeAction = nullptr;
QAction *mMailToReplyAction = nullptr; QAction *mMailToReplyAction = nullptr;
......
...@@ -41,7 +41,7 @@ private: ...@@ -41,7 +41,7 @@ private:
QHash<Akonadi::Collection::Id, QPointer<Akonadi::CollectionPropertiesDialog> > mHashDialogBox; QHash<Akonadi::Collection::Id, QPointer<Akonadi::CollectionPropertiesDialog> > mHashDialogBox;
QStringList mPages; QStringList mPages;
KMMainWidget *mMainWidget = nullptr; KMMainWidget *const mMainWidget;
}; };
#endif // MANAGESHOWCOLLECTIONPROPERTIES_H #endif // MANAGESHOWCOLLECTIONPROPERTIES_H
...@@ -138,7 +138,7 @@ private: ...@@ -138,7 +138,7 @@ private:
QList<QAction *> mMailListActionList; QList<QAction *> mMailListActionList;
Akonadi::Item mCurrentItem; Akonadi::Item mCurrentItem;
Akonadi::Item::List mVisibleItems; Akonadi::Item::List mVisibleItems;
QWidget *mParent = nullptr; QWidget *const mParent;
KMReaderWin *mMessageView = nullptr; KMReaderWin *mMessageView = nullptr;
KActionMenu *mReplyActionMenu = nullptr; KActionMenu *mReplyActionMenu = nullptr;
......
...@@ -36,7 +36,7 @@ private: ...@@ -36,7 +36,7 @@ private:
void slotCollectionStatisticsChanged(Akonadi::Collection::Id id, const Akonadi::CollectionStatistics &); void slotCollectionStatisticsChanged(Akonadi::Collection::Id id, const Akonadi::CollectionStatistics &);
void initUnity(); void initUnity();
Q_REQUIRED_RESULT bool hasUnreadMail() const; Q_REQUIRED_RESULT bool hasUnreadMail() const;
QDBusServiceWatcher *mUnityServiceWatcher = nullptr; QDBusServiceWatcher *const mUnityServiceWatcher;
KMail::KMSystemTray *mSystemTray = nullptr; KMail::KMSystemTray *mSystemTray = nullptr;
int mCount = 0; int mCount = 0;
bool mUnityServiceAvailable = false; bool mUnityServiceAvailable = false;
......
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