mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
Meta: modernize old-fashioned loops to range-based for.
Changes done via `clang-tidy` with some manual fine-tuning for the variable naming and `auto` type deduction where appropriate.
This commit is contained in:
@@ -15,9 +15,8 @@ bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& args,
|
||||
return true;
|
||||
}
|
||||
|
||||
for (std::vector<std::string>::const_iterator i = args.begin();
|
||||
i != args.end(); ++i) {
|
||||
this->Makefile->AddDefineFlag(i->c_str());
|
||||
for (std::string const& i : args) {
|
||||
this->Makefile->AddDefineFlag(i.c_str());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user