Commit 4f3d710f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify

parent 2107f115
Pipeline #33483 passed with stage
in 59 minutes and 3 seconds
......@@ -36,8 +36,8 @@ struct Icons {
{
}
QPixmap readyPixmap, syncPixmap, errorPixmap, offlinePixmap;
QIcon checkMailIcon;
const QPixmap readyPixmap, syncPixmap, errorPixmap, offlinePixmap;
const QIcon checkMailIcon;
};
Q_GLOBAL_STATIC(Icons, s_icons)
......
......@@ -36,7 +36,7 @@ using namespace MailCommon;
QString ArchiveFolderDialog::standardArchivePath(const QString &folderName)
{
QString currentPath = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
QDir dir(currentPath);
const QDir dir(currentPath);
if (!dir.exists()) {
currentPath = QDir::homePath();
}
......
......@@ -561,8 +561,8 @@ private:
KMime::Message::Ptr mMsg;
QGridLayout *mGrid = nullptr;
QString mTextSelection;
QString mCustomTemplate;
const QString mTextSelection;
const QString mCustomTemplate;
bool mLastSignActionState = false;
bool mLastEncryptActionState = false;
bool mSigningAndEncryptionExplicitlyDisabled = false;
......@@ -576,7 +576,7 @@ private:
QFont mBodyFont;
QFont mFixedFont;
uint mId = 0;
TemplateContext mContext = NoTemplate;
const TemplateContext mContext = NoTemplate;
KRecentFilesAction *mRecentAction = nullptr;
......
......@@ -28,7 +28,7 @@ private:
void slotInitialCollectionFetchingFirstLevelDone(KJob *job);
void slotCreateNewFolder(KJob *);
void createNewFolder(const QString &name);
QDate mCurrentDate;
const QDate mCurrentDate;
FolderArchiveAccountInfo *const mInfo;
};
......
......@@ -30,7 +30,7 @@ private:
void slotMoveMessages(KMMoveCommand *);
void sendError(const QString &error);
Akonadi::Item::List mListItem;
const Akonadi::Item::List mListItem;
FolderArchiveManager *const mManager;
FolderArchiveAccountInfo *const mInfo;
};
......
......@@ -38,7 +38,7 @@ Q_SIGNALS:
private:
Q_DISABLE_COPY(FolderShortcutCommand)
Akonadi::Collection mCollectionFolder;
const Akonadi::Collection mCollectionFolder;
QWidget *const mMainWidget;
QAction *mAction = nullptr;
};
......
......@@ -29,7 +29,7 @@ public:
private:
void slotAliasExpansionDone(KJob *);
QString mEmailAddresses;
const QString mEmailAddresses;
QString mDomainDefaultName;
bool mIsValid = false;
QWidget *const mParentWidget;
......
......@@ -25,7 +25,7 @@ private:
void slotModifyItemDone(KJob *job);
void fetchItems();
Akonadi::Item::List mListItem;
const Akonadi::Item::List mListItem;
};
#endif // CREATETASKJOB_H
......@@ -24,7 +24,7 @@ public:
private:
void slotStoreDone(KJob *job);
KMime::Message::Ptr mMsg = nullptr;
Akonadi::Collection mCollection;
const Akonadi::Collection mCollection;
};
#endif // SAVEDRAFTJOB_H
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