Commit 1255eafc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up initialize pointer

parent 26a33037
Pipeline #26161 failed with stage
in 7 minutes and 43 seconds
......@@ -31,8 +31,7 @@ class PimCommon::ShareServiceUrlManagerPrivate
{
public:
explicit ShareServiceUrlManagerPrivate(ShareServiceUrlManager *qq)
: mMenu(nullptr)
, q(qq)
: q(qq)
{
}
......@@ -40,7 +39,7 @@ public:
QString typeToI18n(ShareServiceUrlManager::ServiceType type) const;
void initializeMenu();
KActionMenu *mMenu = nullptr;
ShareServiceUrlManager *q = nullptr;
ShareServiceUrlManager *const q;
};
void ShareServiceUrlManagerPrivate::initializeMenu()
......
......@@ -49,10 +49,6 @@ class Q_DECL_HIDDEN PimCommon::RenameFileDialog::RenameFileDialogPrivate
public:
RenameFileDialogPrivate(const QUrl &_url, RenameFileDialog *qq)
: url(_url)
, applyAll(nullptr)
, renameBtn(nullptr)
, suggestNewNameBtn(nullptr)
, nameEdit(nullptr)
, q(qq)
{
}
......@@ -64,7 +60,7 @@ public:
QPushButton *renameBtn = nullptr;
QPushButton *suggestNewNameBtn = nullptr;
QLineEdit *nameEdit = nullptr;
RenameFileDialog *q = nullptr;
RenameFileDialog *const q;
};
QString PimCommon::RenameFileDialog::RenameFileDialogPrivate::suggestName(const QUrl &baseURL, const QString &oldName)
......
......@@ -42,17 +42,13 @@ class AclEntryDialog::Private
public:
Private(AclEntryDialog *qq)
: q(qq)
, mButtonGroup(nullptr)
, mUserIdLineEdit(nullptr)
, mButtonLayout(nullptr)
, mOkButton(nullptr)
{
}
void slotChanged();
void slotSelectAddresses();
AclEntryDialog *q = nullptr;
AclEntryDialog *const q;
QButtonGroup *mButtonGroup = nullptr;
PimCommon::AddresseeLineEdit *mUserIdLineEdit = nullptr;
QVBoxLayout *mButtonLayout = nullptr;
......
......@@ -168,7 +168,6 @@ class Q_DECL_HIDDEN PimCommon::AclManager::Private
public:
Private(AclManager *qq)
: q(qq)
, mChanged(false)
{
mAddAction = new QAction(i18n("Add Entry..."), q);
q->connect(mAddAction, &QAction::triggered, q, [this]() {
......@@ -368,7 +367,7 @@ public:
selectionChanged();
}
AclManager *q = nullptr;
AclManager *const q;
AclModel *mModel = nullptr;
QItemSelectionModel *mSelectionModel = nullptr;
QAction *mAddAction = nullptr;
......@@ -378,7 +377,7 @@ public:
Akonadi::Collection mCollection;
QString mImapUserName;
KIMAP::Acl::Rights mUserRights;
bool mChanged;
bool mChanged = false;
};
AclManager::AclManager(QObject *parent)
......
......@@ -133,7 +133,7 @@ private Q_SLOTS:
void slotTriggerDelayedQueries();
private:
AddresseeLineEdit *q = nullptr;
AddresseeLineEdit *const q;
QToolButton *mToolButton = nullptr;
QTimer *mDelayedQueryTimer = nullptr;
QString mPreviousAddresses;
......
......@@ -31,7 +31,6 @@ class PimCommon::ContentTypeWidgetPrivate
{
public:
ContentTypeWidgetPrivate()
: mContentsComboBox(nullptr)
{
}
......
......@@ -36,11 +36,6 @@ class PimCommon::CheckedCollectionWidgetPrivate
{
public:
CheckedCollectionWidgetPrivate()
: mFolderView(nullptr)
, mSelectionModel(nullptr)
, mCheckProxy(nullptr)
, mCollectionFilter(nullptr)
, mEntityTreeModel(nullptr)
{
}
......
......@@ -32,7 +32,6 @@ class PimCommon::SelectMultiCollectionDialogPrivate
{
public:
SelectMultiCollectionDialogPrivate()
: mSelectMultiCollection(nullptr)
{
}
......
......@@ -36,7 +36,6 @@ class PimCommon::ManageServerSideSubscriptionJobPrivate
{
public:
ManageServerSideSubscriptionJobPrivate()
: mParentWidget(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