summaryrefslogtreecommitdiff
path: root/Templates
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-24 22:24:06 +0100
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-24 22:24:06 +0100
commit3bb4a798268669ca1364040abb3cfdf4a44c2f92 (patch)
treee2cd61713574dd2bbd1b2c41d6d6f9cabca15ddd /Templates
parent60b68304f25088db12112c47a4599e4fef405429 (diff)
downloadcmake-3bb4a798268669ca1364040abb3cfdf4a44c2f92.tar.gz
TestDriver: use for loop
Diffstat (limited to 'Templates')
-rw-r--r--Templates/TestDriver.cxx.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in
index 7e17761f29..8e5468080b 100644
--- a/Templates/TestDriver.cxx.in
+++ b/Templates/TestDriver.cxx.in
@@ -47,10 +47,8 @@ static char* lowercase(const char* string)
return 0;
}
strncpy(new_string, string, stringSize);
- p = new_string;
- while (*p != 0) {
+ for (p = new_string; *p != 0; ++p) {
*p = CM_CAST(char, tolower(*p));
- ++p;
}
return new_string;
}