Commit 217efd45 authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

initialize members in initializer list

parent 744e1f09
......@@ -31,6 +31,8 @@
Sweeper::Sweeper(bool automatic)
: KXmlGuiWindow(nullptr)
, generalCLI(new QTreeWidgetItem(QStringList(i18nc("General system content", "General"))))
, webbrowsingCLI(new QTreeWidgetItem(QStringList(i18nc("Web browsing content", "Web Browsing"))))
, m_privacyConfGroup(KSharedConfig::openConfig(QStringLiteral("kprivacyrc"), KConfig::NoGlobals), "Cleaning")
, m_automatic(automatic)
{
......@@ -46,9 +48,7 @@ Sweeper::Sweeper(bool automatic)
setAutoSaveSettings();
generalCLI = new QTreeWidgetItem(QStringList() << i18nc("General system content", "General"));
sw->addTopLevelItem(generalCLI);
webbrowsingCLI = new QTreeWidgetItem(QStringList() << i18nc("Web browsing content", "Web Browsing"));
sw->addTopLevelItem(webbrowsingCLI);
generalCLI->setExpanded(true);
......
......@@ -60,8 +60,8 @@ class Sweeper: public KXmlGuiWindow
QVector<PrivacyAction*> checklist;
QTreeWidgetItem *generalCLI;
QTreeWidgetItem *webbrowsingCLI;
QTreeWidgetItem * const generalCLI;
QTreeWidgetItem * const webbrowsingCLI;
KConfigGroup m_privacyConfGroup;
......
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