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:
Craig Scott
2017-11-07 15:41:47 +08:00
parent c37c4771cb
commit 98cbcedd74
4 changed files with 122 additions and 190 deletions

View File

@@ -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;