forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user