diff options
author | Craig Scott <craig.scott@crascit.com> | 2017-11-07 07:41:47 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2017-11-10 05:12:57 (GMT) |
commit | 98cbcedd7414f9e33e166b09ef082c6ecabcb7cf (patch) | |
tree | e2dab415e4b43795a86e58c80703717a90d6d012 /Source/cmXCodeObject.h | |
parent | c37c4771cb876146ae0d23a2008482d6fcd53e35 (diff) | |
download | CMake-98cbcedd7414f9e33e166b09ef082c6ecabcb7cf.zip CMake-98cbcedd7414f9e33e166b09ef082c6ecabcb7cf.tar.gz CMake-98cbcedd7414f9e33e166b09ef082c6ecabcb7cf.tar.bz2 |
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`.
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index b0f1d31..51e5d36 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -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; |