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:
@@ -118,8 +118,8 @@ FilePath getPylsModulePath(CommandLine pylsCommand)
|
||||
QRegularExpression::MultilineOption);
|
||||
|
||||
const QString &output = response.allOutput();
|
||||
for (auto regex : {regexCached, regexNotCached}) {
|
||||
QRegularExpressionMatch result = regex.match(output);
|
||||
for (const auto ®ex : {regexCached, regexNotCached}) {
|
||||
const QRegularExpressionMatch result = regex.match(output);
|
||||
if (result.hasMatch()) {
|
||||
const FilePath &modulePath = FilePath::fromUserInput(result.captured(1));
|
||||
cache[pylsCommand.executable()] = modulePath;
|
||||
|
||||
Reference in New Issue
Block a user