summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-09 16:00:00 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-10 18:25:56 (GMT)
commitcbbca9ee2aba6fa08a3931c69fde92b7b9b273c0 (patch)
tree2992d92119f90efc636e8cd8a32af0e30c25b9c7 /Source/cmLocalGenerator.cxx
parent9296cd0551ed16d926b7c59c41dabd0097ce89c8 (diff)
downloadCMake-cbbca9ee2aba6fa08a3931c69fde92b7b9b273c0.zip
CMake-cbbca9ee2aba6fa08a3931c69fde92b7b9b273c0.tar.gz
CMake-cbbca9ee2aba6fa08a3931c69fde92b7b9b273c0.tar.bz2
Convert more loops to range-based for-loops
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index cf6802d..a7799b6 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2914,11 +2914,11 @@ void cmLocalGenerator::JoinDefines(const std::set<std::string>& defines,
// command line without any escapes. However we still have to
// get the '$' and '#' characters through WMake as '$$' and
// '$#'.
- for (const char* c = define.c_str(); *c; ++c) {
- if (*c == '$' || *c == '#') {
+ for (char c : define) {
+ if (c == '$' || c == '#') {
def += '$';
}
- def += *c;
+ def += c;
}
} else {
// Make the definition appear properly on the command line. Use