Fix clang 10 warnings about unnecessary copies in range loops

Change-Id: I3b57869b5a04528518bc432b76768b01e3f53e81
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-05-12 13:01:44 +02:00
parent 9c1e8a99d8
commit eb96f9900a
10 changed files with 11 additions and 11 deletions

View File

@@ -1034,7 +1034,7 @@ void CdbEngine::runCommand(const DebuggerCommand &dbgCmd)
}
QTC_CHECK(argumentSplitPos == arguments.size());
int tokenPart = splittedArguments.size();
for (const QStringRef part : qAsConst(splittedArguments))
for (const QStringRef &part : qAsConst(splittedArguments))
str << prefix << " -t " << token << '.' << --tokenPart << ' ' << part << '\n';
} else {
cmd = prefix;