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

const'ify pointer

parent 91fd5b25
Pipeline #53370 passed with stage
in 54 minutes and 15 seconds
......@@ -14,13 +14,13 @@
FolderConfigureSettingsPageBase::FolderConfigureSettingsPageBase(QWidget *parent)
: QWidget(parent)
, mMainLayout(new QVBoxLayout)
, mGroupBox(new QGroupBox(i18n("Modify"), this))
{
auto topLayout = new QVBoxLayout(this);
topLayout->setObjectName(QStringLiteral("topLayout"));
mMainLayout->setObjectName(QStringLiteral("mMainLayout"));
mGroupBox = new QGroupBox(i18n("Modify"), this);
mGroupBox->setObjectName(QStringLiteral("mGroupBox"));
mGroupBox->setCheckable(true);
mGroupBox->setChecked(false);
......
......@@ -26,7 +26,7 @@ protected:
private:
void slotModifyClicked(bool clicked);
QWidget *mMainWidget = nullptr;
QGroupBox *mGroupBox = nullptr;
QGroupBox *const mGroupBox;
};
#endif // FOLDERCONFIGURESETTINGSPAGEBASE_H
......@@ -13,6 +13,7 @@
FolderConfigureTreeWidget::FolderConfigureTreeWidget(QWidget *parent)
: QWidget(parent)
, mFolderSettingFilterProxyModel(new FolderSettingFilterProxyModel(this))
{
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
......@@ -33,7 +34,6 @@ FolderConfigureTreeWidget::FolderConfigureTreeWidget(QWidget *parent)
checkable->setSourceModel(sourceModel);
checkable->setSelectionModel(selectionModel);
mFolderSettingFilterProxyModel = new FolderSettingFilterProxyModel(this);
mFolderSettingFilterProxyModel->setObjectName(QStringLiteral("folderSettingFilterProxyModel"));
mFolderSettingFilterProxyModel->setSourceModel(checkable);
......
......@@ -20,7 +20,7 @@ public:
Q_REQUIRED_RESULT Akonadi::Collection::List listCollections() const;
private:
FolderSettingFilterProxyModel *mFolderSettingFilterProxyModel = nullptr;
FolderSettingFilterProxyModel *const mFolderSettingFilterProxyModel;
};
#endif // FOLDERCONFIGURETREEWIDGET_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