diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-06-11 16:53:11 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-06-15 05:58:46 +0000 |
commit | 0be309bcf1b36b06b4ca91172100d9f9d926a1a1 (patch) | |
tree | bfc634258190e5b2b771cca575693d8af9b00a0b /src/plugins/python | |
parent | cbac89b0fd69eed5750933a325618503a7c1e03e (diff) |
Various places: performance-for-range-copy
Change-Id: I475990d32a5211d31a77782667a2dfedba134137
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/python')
-rw-r--r-- | src/plugins/python/pythonutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index bae86fb4e1..364b97017c 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -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; |