diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-01-24 22:24:06 +0100 |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-01-24 22:24:06 +0100 |
commit | 3bb4a798268669ca1364040abb3cfdf4a44c2f92 (patch) | |
tree | e2cd61713574dd2bbd1b2c41d6d6f9cabca15ddd /Templates | |
parent | 60b68304f25088db12112c47a4599e4fef405429 (diff) | |
download | cmake-3bb4a798268669ca1364040abb3cfdf4a44c2f92.tar.gz |
TestDriver: use for loop
Diffstat (limited to 'Templates')
-rw-r--r-- | Templates/TestDriver.cxx.in | 4 |
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; } |