From 3bb4a798268669ca1364040abb3cfdf4a44c2f92 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Tue, 24 Jan 2017 22:24:06 +0100 Subject: TestDriver: use for loop --- Templates/TestDriver.cxx.in | 4 +--- 1 file changed, 1 insertion(+), 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; } -- cgit v0.12