diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-21 23:14:03 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-22 08:45:23 (GMT) |
commit | d169b1f0372e8d6d44406d308381941513f0349a (patch) | |
tree | 7f090c7d7fc45db3390279d6908d38db5724c1bf /Source | |
parent | 86d5d808c812357e13085f39439453d225a5b9e2 (diff) | |
download | CMake-d169b1f0372e8d6d44406d308381941513f0349a.zip CMake-d169b1f0372e8d6d44406d308381941513f0349a.tar.gz CMake-d169b1f0372e8d6d44406d308381941513f0349a.tar.bz2 |
Genex: Use cmArraySize for targetPolicyWhitelist
For better readability.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index bc873e0..d13d0dd 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -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) |