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

Const'ify pointer

parent f06ee95a
......@@ -26,6 +26,7 @@ using namespace Kontact;
K_PLUGIN_FACTORY_WITH_JSON(KCMKontactSummaryFactory, "kontactconfig.json", registerPlugin<KcmKontact>();)
KcmKontact::KcmKontact(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
, mPluginCombo(new QComboBox(parent))
{
auto topLayout = new QVBoxLayout(this);
QBoxLayout *pluginStartupLayout = new QHBoxLayout();
......@@ -35,7 +36,6 @@ KcmKontact::KcmKontact(QWidget *parent, const QVariantList &args)
forceStartupPluginCheckBox->setObjectName(QStringLiteral("kcfg_ForceStartupPlugin"));
pluginStartupLayout->addWidget(forceStartupPluginCheckBox);
mPluginCombo = new QComboBox(parent);
mPluginCombo->setToolTip(i18nc("@info:tooltip", "Select the initial plugin to use on each start"));
mPluginCombo->setWhatsThis(i18nc("@info:whatsthis",
"Select the plugin from this drop down list to be used as the "
......
......@@ -29,7 +29,7 @@ public:
private:
QVector<KPluginMetaData> mPluginList;
QComboBox *mPluginCombo = nullptr;
QComboBox *const mPluginCombo;
QCheckBox *mShowSideBarCheckbox = 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