From abceccbb660037e669f17ab0eeec58233f3b2a39 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 31 Oct 2018 09:26:13 +0100 Subject: [PATCH] Remove unused captures from lambdas Reviewers: davidedmundson Reviewed By: davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16481 --- tabbox/tabboxhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabbox/tabboxhandler.cpp b/tabbox/tabboxhandler.cpp index e7bfb59bfc..c14010ea9d 100644 --- a/tabbox/tabboxhandler.cpp +++ b/tabbox/tabboxhandler.cpp @@ -246,7 +246,7 @@ QObject *TabBoxHandlerPrivate::createSwitcherItem(bool desktopMode) if (offers.isEmpty()) { // load default offers = KPackage::PackageLoader::self()->findPackages(type, folderName, - [this] (const KPluginMetaData &data) { + [] (const KPluginMetaData &data) { return data.pluginId().compare(QStringLiteral("informative"), Qt::CaseInsensitive) == 0; } ); @@ -265,7 +265,7 @@ QObject *TabBoxHandlerPrivate::createSwitcherItem(bool desktopMode) qCDebug(KWIN_TABBOX) << "Window Switcher Layout is no declarativeappletscript"; return nullptr; } - auto findScriptFile = [desktopMode, service, folderName] { + auto findScriptFile = [service, folderName] { const QString pluginName = service.pluginId(); const QString scriptName = service.value(QStringLiteral("X-Plasma-MainScript")); return QStandardPaths::locate(QStandardPaths::GenericDataLocation, folderName + pluginName + QLatin1String("/contents/") + scriptName);