QmlDesigner: Fix remaining C++20 warnings about [=] captures

Change-Id: Ia54208e5e72016f6ca22e0b005d479aac8f49929
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Jarek Kobus
2024-02-06 14:01:07 +01:00
parent 48bdf883dd
commit ff1aa20892
19 changed files with 66 additions and 54 deletions

View File

@@ -1462,8 +1462,9 @@ void EffectComposerModel::bakeShaders()
args << "-o" << outPaths[i] << srcPaths[i];
auto qsbProcess = new Utils::Process(this);
connect(qsbProcess, &Utils::Process::done, this, [=] {
handleQsbProcessExit(qsbProcess, srcPaths[i], preview);
connect(qsbProcess, &Utils::Process::done, this,
[this, qsbProcess, path = srcPaths[i], preview] {
handleQsbProcessExit(qsbProcess, path, preview);
});
qsbProcess->setWorkingDirectory(workDir.absolutePath());
qsbProcess->setCommand({qsbPath, args});