From d11082523eda7df6b7dbd7205d5a177bf525d1fc Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Sat, 12 Sep 2020 15:21:50 +0200 Subject: [PATCH] Fix clazy warning and deprecation --- startkde/plasma-session/startup.cpp | 2 +- startkde/startplasma.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/startkde/plasma-session/startup.cpp b/startkde/plasma-session/startup.cpp index 7208a54b4..38f62c46d 100644 --- a/startkde/plasma-session/startup.cpp +++ b/startkde/plasma-session/startup.cpp @@ -210,7 +210,7 @@ Startup::Startup(QObject *parent): upAndRunning(QStringLiteral("ksmserver")); const AutoStart autostart; - QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper")); + QProcess::execute(QStringLiteral(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/start_kdeinit_wrapper"), QStringList()); KJob* phase1; QProcessEnvironment kdedProcessEnv; diff --git a/startkde/startplasma.cpp b/startkde/startplasma.cpp index beea80533..434c64ac0 100644 --- a/startkde/startplasma.cpp +++ b/startkde/startplasma.cpp @@ -210,7 +210,7 @@ void runEnvironmentScripts() continue; } const auto dirScripts = dir.entryInfoList({QStringLiteral("*.sh")}, QDir::Files, QDir::Name); - for (const auto script : dirScripts) { + for (const auto &script : dirScripts) { scripts << script.absoluteFilePath(); } }