diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-02-04 07:04:40 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-02-05 17:08:52 +0000 |
commit | 01e0a542605bc22237d03ef3742197a6540bd07d (patch) | |
tree | 684dd9f1da2a87ced4b63ddcc86f47d072a6f564 | |
parent | 40ae3324be2790e8fa0c19fe21c6551084970dcc (diff) |
Use consistent names in PathProbes
This code is copy&paste but different variable names make it easy to
make a mistake doing changes
Change-Id: Iab5b923ac010e1aa1fb158ee1d66986f41a0fa2a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | share/qbs/imports/qbs/Probes/GccBinaryProbe.qbs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/share/qbs/imports/qbs/Probes/GccBinaryProbe.qbs b/share/qbs/imports/qbs/Probes/GccBinaryProbe.qbs index 8bad0710a..670749ddc 100644 --- a/share/qbs/imports/qbs/Probes/GccBinaryProbe.qbs +++ b/share/qbs/imports/qbs/Probes/GccBinaryProbe.qbs @@ -48,7 +48,7 @@ BinaryProbe { configure: { var selectors; - var _results = PathProbeConfigure.configure( + var results = PathProbeConfigure.configure( selectors, names, nameSuffixes, nameFilter, candidateFilter, searchPaths, pathSuffixes, platformSearchPaths, environmentPaths, platformEnvironmentPaths, pathListSeparator); @@ -61,16 +61,16 @@ BinaryProbe { }); return result; }; - _results.files = _results.files.map(resultsMapper); + results.files = results.files.map(resultsMapper); - found = _results.found; - allResults = _results.files; + found = results.found; + allResults = results.files; - var resultFile = _results.files[0]; - candidatePaths = resultFile.candidatePaths; - path = resultFile.path; - filePath = resultFile.filePath; - fileName = resultFile.fileName; - tcPrefix = resultFile.tcPrefix; + var result = results.files[0]; + candidatePaths = result.candidatePaths; + path = result.path; + filePath = result.filePath; + fileName = result.fileName; + tcPrefix = result.tcPrefix; } } |