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

const'ify more pointer

parent a6ce1b74
Pipeline #146780 failed with stage
in 55 seconds
......@@ -19,6 +19,7 @@ K_PLUGIN_CLASS_WITH_JSON(KCMKaddressbookPluginsConfig, "kaddressbook_config_plug
KCMKaddressbookPluginsConfig::KCMKaddressbookPluginsConfig(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
, mConfigurePluginWidget(new PimCommon::ConfigurePluginsWidget(new KAddressBookConfigPluginListWidget(this), this))
{
auto lay = new QHBoxLayout(this);
lay->setContentsMargins({});
......@@ -33,7 +34,6 @@ KCMKaddressbookPluginsConfig::KCMKaddressbookPluginsConfig(QWidget *parent, cons
about->addAuthor(i18n("Laurent Montel"), QString(), QStringLiteral("montel@kde.org"));
setAboutData(about);
mConfigurePluginWidget = new PimCommon::ConfigurePluginsWidget(new KAddressBookConfigPluginListWidget(this), this);
connect(mConfigurePluginWidget, &PimCommon::ConfigurePluginsWidget::changed, this, &KCMKaddressbookPluginsConfig::slotConfigChanged);
lay->addWidget(mConfigurePluginWidget);
}
......
......@@ -26,6 +26,6 @@ public:
private:
void slotConfigChanged();
PimCommon::ConfigurePluginsWidget *mConfigurePluginWidget = nullptr;
PimCommon::ConfigurePluginsWidget *const mConfigurePluginWidget;
};
}
......@@ -20,6 +20,7 @@ K_PLUGIN_CLASS_WITH_JSON(KCMKaddressbookUserFeedBackConfig, "kaddressbook_config
KCMKaddressbookUserFeedBackConfig::KCMKaddressbookUserFeedBackConfig(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
, mUserFeedbackWidget(new KUserFeedback::FeedbackConfigWidget(this))
{
auto lay = new QHBoxLayout(this);
lay->setContentsMargins({});
......@@ -34,7 +35,6 @@ KCMKaddressbookUserFeedBackConfig::KCMKaddressbookUserFeedBackConfig(QWidget *pa
about->addAuthor(i18n("Laurent Montel"), QString(), QStringLiteral("montel@kde.org"));
setAboutData(about);
mUserFeedbackWidget = new KUserFeedback::FeedbackConfigWidget(this);
connect(mUserFeedbackWidget, &KUserFeedback::FeedbackConfigWidget::configurationChanged, this, &KCMKaddressbookUserFeedBackConfig::markAsChanged);
lay->addWidget(mUserFeedbackWidget);
......
......@@ -26,6 +26,6 @@ public:
void defaults() override;
private:
KUserFeedback::FeedbackConfigWidget *mUserFeedbackWidget = nullptr;
KUserFeedback::FeedbackConfigWidget *const mUserFeedbackWidget;
};
}
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