Tasking: Fix some C++20 warnings about [=] captures

Change-Id: Ic49c9f393155acd16a2c116672fe73361f5c874d
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2024-02-05 19:45:11 +01:00
parent 7d468a2686
commit 48bdf883dd
6 changed files with 13 additions and 14 deletions

View File

@@ -105,12 +105,11 @@ GroupItem AppManagerInstallPackageStep::deployRecipe()
const FilePath packageFilePath = packageFile().isEmpty() ?
FilePath::fromString(packageFile.defaultValue()) :
packageFile();
CommandLine cmd(controllerPath);
cmd.addArgs(controllerArguments, CommandLine::Raw);
cmd.addArg(packageFilePath.nativePath());
const auto setupHandler = [=](Process &process) {
CommandLine cmd(controllerPath);
cmd.addArgs(controllerArguments, CommandLine::Raw);
cmd.addArg(packageFilePath.nativePath());
const auto setupHandler = [this, cmd](Process &process) {
addProgressMessage(Tr::tr("Starting command \"%1\".").arg(cmd.displayName()));
process.setCommand(cmd);