custom-buildsystem: define array length explicitly to catch non-match size

parent 266d644c
......@@ -32,7 +32,7 @@ QString generateToolGroupName( CustomBuildSystemTool::ActionType type )
{
static const int toolTypeCount = CustomBuildSystemTool::Undefined + 1;
// Static Qt-based objects are discouraged (MSVC-incompatible), so use raw strings
static const char* const toolTypes[] = {
static const char* const toolTypes[toolTypeCount] = {
"Build",
"Configure",
"Install",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment