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

Clean up constructor

parent b7d424c7
Pipeline #25839 passed with stage
in 26 minutes and 33 seconds
......@@ -52,10 +52,6 @@ class MailCommon::AccountConfigOrderDialogPrivate
{
public:
AccountConfigOrderDialogPrivate()
: mListAccount(nullptr)
, mUpButton(nullptr)
, mDownButton(nullptr)
, mEnableAccountOrder(nullptr)
{
}
......
......@@ -31,7 +31,6 @@ class Q_DECL_HIDDEN EntityCollectionOrderProxyModel::EntityCollectionOrderProxyM
{
public:
EntityCollectionOrderProxyModelPrivate()
: manualSortingActive(false)
{
}
......@@ -83,7 +82,7 @@ public:
QMap<Akonadi::Collection::Id, int> collectionRanks;
QStringList topLevelOrder;
bool manualSortingActive;
bool manualSortingActive = false;
};
EntityCollectionOrderProxyModel::EntityCollectionOrderProxyModel(QObject *parent)
......
......@@ -69,6 +69,7 @@ FolderCollectionMonitor::FolderCollectionMonitor(Akonadi::Session *session, QObj
FolderCollectionMonitor::~FolderCollectionMonitor()
{
qDebug() << "FolderCollectionMonitor::~FolderCollectionMonitor() " << this;
delete d;
}
......
......@@ -76,7 +76,7 @@ public:
QColor brokenAccountColor;
qreal threshold = 0.0;
FolderTreeWidgetProxyModel *q;
FolderTreeWidgetProxyModel * const q;
bool enableCheck = false;
bool hideVirtualFolder = false;
bool hideSpecificFolder = false;
......
......@@ -46,19 +46,9 @@ static const mode_t archivePerms = S_IFREG | 0644;
BackupJob::BackupJob(QWidget *parent)
: QObject(parent)
, mArchiveTime(QDateTime::currentDateTime())
, mArchiveType(Zip)
, mRootFolder(0)
, mArchive(nullptr)
, mParentWidget(parent)
, mArchivedMessages(0)
, mArchivedSize(0)
, mProgressItem(nullptr)
, mAborted(false)
, mDeleteFoldersAfterCompletion(false)
, mRecursive(true)
, mCurrentFolder(Akonadi::Collection())
, mCurrentJob(nullptr)
, mDisplayMessageBox(true)
{
}
......
......@@ -104,23 +104,23 @@ private:
QString mRealPath;
QUrl mMailArchivePath;
QDateTime mArchiveTime;
ArchiveType mArchiveType;
ArchiveType mArchiveType = Zip;
Akonadi::Collection mRootFolder;
KArchive *mArchive = nullptr;
QWidget *mParentWidget = nullptr;
int mArchivedMessages;
uint mArchivedSize;
int mArchivedMessages = 0;
uint mArchivedSize = 0;
QPointer<KPIM::ProgressItem> mProgressItem;
bool mAborted;
bool mDeleteFoldersAfterCompletion;
bool mRecursive;
bool mAborted = false;
bool mDeleteFoldersAfterCompletion = false;
bool mRecursive = true;
Akonadi::Collection::List mPendingFolders;
Akonadi::Collection::List mAllFolders;
Akonadi::Collection mCurrentFolder;
Akonadi::Item::List mPendingMessages;
Akonadi::ItemFetchJob *mCurrentJob = nullptr;
bool mDisplayMessageBox = false;
bool mDisplayMessageBox = true;
};
}
......
......@@ -50,7 +50,7 @@ public:
void handleMessages();
SendMdnHandler *q;
SendMdnHandler * const q;
IKernel *mKernel = nullptr;
QQueue<Akonadi::Item> mItemQueue;
QTimer mTimer;
......
......@@ -75,7 +75,7 @@ public:
void save();
SnippetsManager *q = nullptr;
SnippetsManager * const q = nullptr;
SnippetsModel *mModel = nullptr;
QItemSelectionModel *mSelectionModel = nullptr;
KActionCollection *mActionCollection = nullptr;
......
......@@ -34,8 +34,6 @@ class MailCommon::AddTagDialogPrivate
{
public:
AddTagDialogPrivate()
: mTagWidget(nullptr)
, mOkButton(nullptr)
{
}
......
......@@ -26,7 +26,6 @@ class MailCommon::ResourceReadConfigFilePrivate
{
public:
ResourceReadConfigFilePrivate()
: mConfig(nullptr)
{
}
......
......@@ -56,14 +56,7 @@ class Q_DECL_HIDDEN RedirectDialog::Private
public:
Private(RedirectDialog *qq, RedirectDialog::SendMode mode)
: q(qq)
, mEditTo(nullptr)
, mEditCc(nullptr)
, mEditBcc(nullptr)
, mSendMode(mode)
, mComboboxIdentity(nullptr)
, mTransportCombobox(nullptr)
, mUser1Button(nullptr)
, mUser2Button(nullptr)
{
}
......@@ -77,7 +70,7 @@ public:
void slotUser2();
void slotAddressChanged(const QString &);
QString redirectLabelType(TypeAddress type) const;
RedirectDialog *q = nullptr;
RedirectDialog * const q = nullptr;
RedirectWidget *mEditTo = nullptr;
RedirectWidget *mEditCc = nullptr;
RedirectWidget *mEditBcc = nullptr;
......
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