forked from qt-creator/qt-creator
Fix some warnings about unused lambda captures
Change-Id: Icfb1b963b3c55656c760497e4ae3ece2bdccbbc7 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -279,9 +279,9 @@ bool AutotestPlugin::initialize(const QStringList &arguments, QString *errorStri
|
||||
dd = new AutotestPluginPrivate;
|
||||
#ifdef WITH_TESTS
|
||||
ExtensionSystem::PluginManager::registerScenario("TestStringTable",
|
||||
[this]() { return dd->m_loadProjectScenario(); });
|
||||
[] { return dd->m_loadProjectScenario(); });
|
||||
ExtensionSystem::PluginManager::registerScenario("TestModelManagerInterface",
|
||||
[this]() { return dd->m_loadProjectScenario(); });
|
||||
[] { return dd->m_loadProjectScenario(); });
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1027,7 +1027,7 @@ const QList<BuildTargetInfo> CMakeBuildSystem::appTargets() const
|
||||
|
||||
QStringList CMakeBuildSystem::buildTargetTitles() const
|
||||
{
|
||||
auto nonAutogenTargets = filtered(m_buildTargets, [this](const CMakeBuildTarget &target){
|
||||
auto nonAutogenTargets = filtered(m_buildTargets, [](const CMakeBuildTarget &target){
|
||||
return !CMakeBuildSystem::filteredOutTarget(target);
|
||||
});
|
||||
return transform(nonAutogenTargets, &CMakeBuildTarget::title);
|
||||
|
||||
@@ -136,7 +136,7 @@ void McuSupportPlugin::askUserAboutMcuSupportKitsUpgrade()
|
||||
static McuSupportOptions::UpgradeOption selectedOption;
|
||||
const QStringList options = { tr("Create new kits"), tr("Replace existing kits") };
|
||||
selectedOption = McuSupportOptions::UpgradeOption::Keep;
|
||||
info.setComboInfo(options, [upgradeMcuSupportKits, options](const QString &selected) {
|
||||
info.setComboInfo(options, [options](const QString &selected) {
|
||||
selectedOption = options.indexOf(selected) == 0 ?
|
||||
McuSupportOptions::UpgradeOption::Keep :
|
||||
McuSupportOptions::UpgradeOption::Replace;
|
||||
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
connect(checkout,
|
||||
&ExampleCheckout::finishedSucessfully,
|
||||
this,
|
||||
[checkout, this, formFile, example]() {
|
||||
[checkout, formFile, example]() {
|
||||
const QString projectFile = checkout->extractionFolder() + "/" + example
|
||||
+ "/" + example + ".qmlproject";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user