Genex: Use cmArraySize for targetPolicyWhitelist

For better readability.
This commit is contained in:
Stephen Kelly 2013-10-22 01:14:03 +02:00
parent 86d5d808c8
commit d169b1f037
1 changed files with 1 additions and 4 deletions

View File

@ -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)