forked from qt-creator/qt-creator
Various places: performance-for-range-copy
Change-Id: I475990d32a5211d31a77782667a2dfedba134137 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -124,7 +124,7 @@ QString fullPath(const QString &executable)
|
||||
|
||||
static QString findValidExecutable(const QStringList &candidates)
|
||||
{
|
||||
for (QString candidate : candidates) {
|
||||
for (const QString &candidate : candidates) {
|
||||
const QString expandedPath = fullPath(candidate);
|
||||
if (isFileExecutable(expandedPath))
|
||||
return expandedPath;
|
||||
|
||||
Reference in New Issue
Block a user