diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2023-09-21 09:15:39 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2023-09-21 21:46:46 +0200 |
| commit | 49ff83fcef270c2a4317b5c95524c08a26120074 (patch) | |
| tree | 12bee38ba9cffcbabb2312b3aafa5b496412af47 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | f5fc45bcb47688c869340b2c4a4e021e7ce44329 (diff) | |
CMake: Use while instead of foreach in qt_evaluate_config_expression
By using a while loop instead of a foreach(RANGE), we can simplify the
code and remove the skipNext variable.
Also, we need to access the last used iteration index in a future
commit. This is not possible with a foreach loop without saving the
index in another variable.
Change-Id: I39306a0105fb31a6a8f39e9d4c47ee3424599a2b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
