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