Commit 1662475b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

modernize code

parent 8f597bf9
Pipeline #33204 passed with stage
in 42 minutes and 9 seconds
......@@ -20,7 +20,6 @@ using namespace MailCommon;
FilterActionPlaySound::FilterActionPlaySound()
: FilterActionWithTest(QStringLiteral("play sound"), i18n("Play Sound"))
, mPlayer(nullptr)
{
}
......
......@@ -33,7 +33,7 @@ protected:
QVector<MailFilter *> mListMailFilter;
QStringList mEmptyFilter;
private:
bool mInteractive;
const bool mInteractive;
};
}
......
......@@ -39,10 +39,6 @@ struct InstanceStruct {
class MailCommon::AccountConfigOrderDialogPrivate
{
public:
AccountConfigOrderDialogPrivate()
{
}
QListWidget *mListAccount = nullptr;
QPushButton *mUpButton = nullptr;
QPushButton *mDownButton = nullptr;
......
......@@ -27,10 +27,6 @@ using namespace MailCommon;
class MailCommon::FolderCollectionMonitorPrivate
{
public:
FolderCollectionMonitorPrivate()
{
}
Akonadi::ChangeRecorder *mMonitor = nullptr;
};
......
......@@ -25,10 +25,6 @@ namespace MailCommon {
class FolderRequesterPrivate
{
public:
FolderRequesterPrivate()
{
}
Akonadi::Collection mCollection;
QLineEdit *mEdit = nullptr;
QString mSelectFolderTitleDialog;
......
......@@ -33,10 +33,6 @@ namespace MailCommon {
class Q_DECL_HIDDEN FolderSelectionDialog::FolderSelectionDialogPrivate
{
public:
FolderSelectionDialogPrivate()
{
}
FolderTreeWidget *folderTreeWidget = nullptr;
QPushButton *mUser1Button = nullptr;
QPushButton *mOkButton = nullptr;
......
......@@ -44,10 +44,6 @@ namespace MailCommon {
class Q_DECL_HIDDEN FolderTreeWidget::FolderTreeWidgetPrivate
{
public:
FolderTreeWidgetPrivate()
{
}
QString filter;
QString oldFilterStr;
Akonadi::StatisticsProxyModel *filterModel = nullptr;
......
......@@ -93,7 +93,7 @@ private:
ArchiveType mArchiveType = Zip;
Akonadi::Collection mRootFolder;
KArchive *mArchive = nullptr;
QWidget *mParentWidget = nullptr;
QWidget *const mParentWidget;
int mArchivedMessages = 0;
uint mArchivedSize = 0;
QPointer<KPIM::ProgressItem> mProgressItem;
......
......@@ -38,7 +38,7 @@ public:
void handleMessages();
SendMdnHandler * const q;
IKernel *mKernel = nullptr;
IKernel *const mKernel;
QQueue<Akonadi::Item> mItemQueue;
QTimer mTimer;
};
......
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