diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-23 13:31:18 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:45 (GMT) |
commit | 1f893e587371cbce2007cae55c118fcf50dca849 (patch) | |
tree | 829c7b8aacad16fe739e0589dbd2f3db1e0e7426 /Source/cmIDEOptions.cxx | |
parent | 362d6cd234dd8e83577bb72dcbe22949aa9253bf (diff) | |
download | CMake-1f893e587371cbce2007cae55c118fcf50dca849.zip CMake-1f893e587371cbce2007cae55c118fcf50dca849.tar.gz CMake-1f893e587371cbce2007cae55c118fcf50dca849.tar.bz2 |
clang-tidy: fix `modernize-loop-convert` lints
Diffstat (limited to 'Source/cmIDEOptions.cxx')
-rw-r--r-- | Source/cmIDEOptions.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index 5a22697..9468d4a 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -21,8 +21,8 @@ cmIDEOptions::cmIDEOptions() this->DoingInclude = false; this->AllowSlash = false; this->DoingFollowing = nullptr; - for (int i = 0; i < FlagTableCount; ++i) { - this->FlagTable[i] = nullptr; + for (auto& flag : this->FlagTable) { + flag = nullptr; } } |