mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 06:40:48 -06:00
Xcode: use ranged for loops, cleanup existing for loops
The changes are mostly converting old-style explicit iterator for loops into ranged for statements. A number of for loops had already been changed over, but local variables had been left behind instead of being absorbed into the ranged for statement, so these have been cleaned up too. A couple of minor improvements were made in areas already being updated by the for loop changes to slightly simplify the code or to avoid unnecessary conversions between `const char*` and `std::string`.
This commit is contained in:
@@ -150,7 +150,7 @@ public:
|
||||
return this->List;
|
||||
}
|
||||
void SetComment(const std::string& c) { this->Comment = c; }
|
||||
static void PrintString(std::ostream& os, std::string String);
|
||||
static void PrintString(std::ostream& os, const std::string& String);
|
||||
|
||||
protected:
|
||||
void PrintString(std::ostream& os) const;
|
||||
|
||||
Reference in New Issue
Block a user