mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmCTestTestHandler: use pointers to static memory
There's no need to reserve 100 bytes for each of these strings.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user