summaryrefslogtreecommitdiffstats
path: root/Templates/TestDriver.cxx.in
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-24 21:24:06 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-01-24 21:24:06 (GMT)
commit3bb4a798268669ca1364040abb3cfdf4a44c2f92 (patch)
treee2cd61713574dd2bbd1b2c41d6d6f9cabca15ddd /Templates/TestDriver.cxx.in
parent60b68304f25088db12112c47a4599e4fef405429 (diff)
downloadCMake-3bb4a798268669ca1364040abb3cfdf4a44c2f92.zip
CMake-3bb4a798268669ca1364040abb3cfdf4a44c2f92.tar.gz
CMake-3bb4a798268669ca1364040abb3cfdf4a44c2f92.tar.bz2
TestDriver: use for loop
Diffstat (limited to 'Templates/TestDriver.cxx.in')
-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 7e17761..8e54680 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;
}