Commit 9b3f3600 authored by Kevin Ottens's avatar Kevin Ottens
Browse files

Silence warnings (noops + unused capture variable)

Reviewers: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24391
parent 55e5d911
......@@ -190,8 +190,8 @@ void KCMDesktopTheme::installTheme(const QString &path)
qCDebug(KCM_DESKTOP_THEME) << program << arguments.join(QLatin1Char(' '));
QProcess *myProcess = new QProcess(this);
connect(myProcess, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished),
this, [this, myProcess](int exitCode, QProcess::ExitStatus exitStatus) {
Q_UNUSED(exitStatus);
this, [this](int exitCode, QProcess::ExitStatus exitStatus) {
Q_UNUSED(exitStatus)
if (exitCode == 0) {
emit showSuccessMessage(i18n("Theme installed successfully."));
load();
......@@ -349,7 +349,7 @@ void KCMDesktopTheme::processPendingDeletions()
QProcess *process = new QProcess(this);
connect(process, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this,
[this, process, idx, pluginName, displayName](int exitCode, QProcess::ExitStatus exitStatus) {
Q_UNUSED(exitStatus);
Q_UNUSED(exitStatus)
if (exitCode == 0) {
m_model->removeRow(idx.row());
} else {
......
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