Commit c1692117 authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

use auto

parent 1f24aec0
......@@ -124,7 +124,7 @@ bool ClearAllCookiesPoliciesAction::action()
bool ClearSavedClipboardContentsAction::action()
{
if(!QDBusConnection::sessionBus().interface()->isServiceRegistered(QStringLiteral("org.kde.klipper"))) {
KConfig *c = new KConfig(QStringLiteral("klipperrc"), KConfig::NoGlobals);
auto c = new KConfig(QStringLiteral("klipperrc"), KConfig::NoGlobals);
KConfigGroup group(c, "General");
group.deleteEntry("ClipboardData");
c->sync();
......
......@@ -36,7 +36,7 @@ Sweeper::Sweeper(bool automatic)
, m_privacyConfGroup(KSharedConfig::openConfig(QStringLiteral("kprivacyrc"), KConfig::NoGlobals), "Cleaning")
, m_automatic(automatic)
{
QWidget *mainWidget = new QWidget(this);
auto mainWidget = new QWidget(this);
ui.setupUi(mainWidget);
setCentralWidget(mainWidget);
......
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