forked from qt-creator/qt-creator
Libs: Use qAsConst with non-const Qt containers in range-loops
Change-Id: I00d9f7c1634bbb62191470d58158e1fd150533c0 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -162,7 +162,7 @@ void SftpTransfer::doStart()
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (const FileToTransfer &f : d->files) {
|
||||
for (const FileToTransfer &f : qAsConst(d->files)) {
|
||||
QString sourceFileOrLinkTarget = f.sourceFile;
|
||||
bool link = false;
|
||||
if (d->transferType == Internal::FileTransferType::Upload) {
|
||||
|
||||
Reference in New Issue
Block a user