forked from qt-creator/qt-creator
GenericDeployStep: Add missing reference, avoid auto
Change-Id: Ib240bfefaea6c0637cbe66310cb4cc98db78c0d9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -99,7 +99,7 @@ GroupItem GenericDeployStep::mkdirTask()
|
||||
FilePath::removeDuplicates(remoteDirs);
|
||||
|
||||
async.setConcurrentCallData([remoteDirs](QPromise<ResultType> &promise) {
|
||||
for (auto dir : remoteDirs) {
|
||||
for (const FilePath &dir : remoteDirs) {
|
||||
const expected_str<void> result = dir.ensureWritableDir();
|
||||
promise.addResult(result);
|
||||
if (!result)
|
||||
@@ -117,7 +117,7 @@ GroupItem GenericDeployStep::mkdirTask()
|
||||
}
|
||||
|
||||
for (int i = 0; i < numResults; ++i) {
|
||||
const auto result = async.future().resultAt(i);
|
||||
const ResultType result = async.future().resultAt(i);
|
||||
if (!result.has_value())
|
||||
addErrorMessage(result.error());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user