diff options
author | Brad King <brad.king@kitware.com> | 2023-05-22 18:31:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-22 21:15:45 (GMT) |
commit | bd4ec7a71ea0033b6a4fd80956e6a84e40a5a5ef (patch) | |
tree | 0aa6a1eeca6509675e3bcec8235c2f692b89f7d0 | |
parent | 93ee2b369c8f2937d848026bad40b09586a5c487 (diff) | |
download | CMake-bd4ec7a71ea0033b6a4fd80956e6a84e40a5a5ef.zip CMake-bd4ec7a71ea0033b6a4fd80956e6a84e40a5a5ef.tar.gz CMake-bd4ec7a71ea0033b6a4fd80956e6a84e40a5a5ef.tar.bz2 |
clang-tidy: Fix modernize-loop-convert warnings
-rw-r--r-- | Source/cmCustomCommandGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCustomCommandGenerator.cxx b/Source/cmCustomCommandGenerator.cxx index 7623ccf..2c1480a 100644 --- a/Source/cmCustomCommandGenerator.cxx +++ b/Source/cmCustomCommandGenerator.cxx @@ -332,9 +332,9 @@ const char* cmCustomCommandGenerator::GetArgv0Location(unsigned int c) const bool cmCustomCommandGenerator::HasOnlyEmptyCommandLines() const { - for (size_t i = 0; i < this->CommandLines.size(); ++i) { - for (size_t j = 0; j < this->CommandLines[i].size(); ++j) { - if (!this->CommandLines[i][j].empty()) { + for (cmCustomCommandLine const& ccl : this->CommandLines) { + for (std::string const& cl : ccl) { + if (!cl.empty()) { return false; } } |