Remove unused captures from lambdas
Reviewers: davidedmundson Reviewed By: davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D16481
This commit is contained in:
parent
04bbe10038
commit
abceccbb66
1 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ QObject *TabBoxHandlerPrivate::createSwitcherItem(bool desktopMode)
|
||||||
if (offers.isEmpty()) {
|
if (offers.isEmpty()) {
|
||||||
// load default
|
// load default
|
||||||
offers = KPackage::PackageLoader::self()->findPackages(type, folderName,
|
offers = KPackage::PackageLoader::self()->findPackages(type, folderName,
|
||||||
[this] (const KPluginMetaData &data) {
|
[] (const KPluginMetaData &data) {
|
||||||
return data.pluginId().compare(QStringLiteral("informative"), Qt::CaseInsensitive) == 0;
|
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";
|
qCDebug(KWIN_TABBOX) << "Window Switcher Layout is no declarativeappletscript";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto findScriptFile = [desktopMode, service, folderName] {
|
auto findScriptFile = [service, folderName] {
|
||||||
const QString pluginName = service.pluginId();
|
const QString pluginName = service.pluginId();
|
||||||
const QString scriptName = service.value(QStringLiteral("X-Plasma-MainScript"));
|
const QString scriptName = service.value(QStringLiteral("X-Plasma-MainScript"));
|
||||||
return QStandardPaths::locate(QStandardPaths::GenericDataLocation, folderName + pluginName + QLatin1String("/contents/") + scriptName);
|
return QStandardPaths::locate(QStandardPaths::GenericDataLocation, folderName + pluginName + QLatin1String("/contents/") + scriptName);
|
||||||
|
|
Loading…
Reference in a new issue