diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-04-21 13:50:04 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2017-04-21 17:03:01 (GMT) |
commit | 3d1bd0111447909bec0582e8c0128a427a5eeaba (patch) | |
tree | ab05bc5a626eb00f5dca1fc2e1a1e9dfe7fe7adc | |
parent | 5969048d1dbd531902f187699e47754115274564 (diff) | |
download | CMake-3d1bd0111447909bec0582e8c0128a427a5eeaba.zip CMake-3d1bd0111447909bec0582e8c0128a427a5eeaba.tar.gz CMake-3d1bd0111447909bec0582e8c0128a427a5eeaba.tar.bz2 |
cmCTestTestHandler: use pointers to static memory
There's no need to reserve 100 bytes for each of these strings.
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index dafeec2..167fecf 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -1633,10 +1633,10 @@ void cmCTestTestHandler::UseExcludeRegExp() const char* cmCTestTestHandler::GetTestStatus(int status) { - static const char statuses[][100] = { - "Not Run", "Timeout", "SEGFAULT", "ILLEGAL", "INTERRUPT", - "NUMERICAL", "OTHER_FAULT", "Failed", "BAD_COMMAND", "Completed" - }; + static const char* statuses[] = { "Not Run", "Timeout", "SEGFAULT", + "ILLEGAL", "INTERRUPT", "NUMERICAL", + "OTHER_FAULT", "Failed", "BAD_COMMAND", + "Completed" }; if (status < cmCTestTestHandler::NOT_RUN || status > cmCTestTestHandler::COMPLETED) { |