summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-04-21 13:50:04 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-04-21 17:03:01 (GMT)
commit3d1bd0111447909bec0582e8c0128a427a5eeaba (patch)
treeab05bc5a626eb00f5dca1fc2e1a1e9dfe7fe7adc
parent5969048d1dbd531902f187699e47754115274564 (diff)
downloadCMake-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.cxx8
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) {