Genex: Use cmArraySize for targetPolicyWhitelist
For better readability.
This commit is contained in:
parent
86d5d808c8
commit
d169b1f037
|
@ -1101,10 +1101,7 @@ static const struct TargetPolicyNode : public cmGeneratorExpressionNode
|
|||
|
||||
context->HadContextSensitiveCondition = true;
|
||||
|
||||
for (size_t i = 1;
|
||||
i < (sizeof(targetPolicyWhitelist) /
|
||||
sizeof(*targetPolicyWhitelist));
|
||||
++i)
|
||||
for (size_t i = 1; i < cmArraySize(targetPolicyWhitelist); ++i)
|
||||
{
|
||||
const char *policy = targetPolicyWhitelist[i];
|
||||
if (parameters.front() == policy)
|
||||
|
|
Loading…
Reference in New Issue