summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-03 08:27:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-04 20:32:19 (GMT)
commitdbf680d670e399cc3b042721a1179fba0429073b (patch)
tree3262da1fbb17671794ecd33ddbcf0d94aac0073c /Source/cmPolicies.cxx
parent8c204133e5b7dc278de64c66a6ce0be8ec4ab6f4 (diff)
downloadCMake-dbf680d670e399cc3b042721a1179fba0429073b.zip
CMake-dbf680d670e399cc3b042721a1179fba0429073b.tar.gz
CMake-dbf680d670e399cc3b042721a1179fba0429073b.tar.bz2
cmPolicies: Use more-direct ID access.
Diffstat (limited to 'Source/cmPolicies.cxx')
-rw-r--r--Source/cmPolicies.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 2d7c710..10f85ac 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -596,7 +596,7 @@ bool cmPolicies::ApplyPolicyVersion(cmMakefile *mf,
{
cmPolicies::PolicyStatus status = cmPolicies::WARN;
if(!GetPolicyDefault(mf, idToString(i->first), &status) ||
- !mf->SetPolicy(i->second->ID, status))
+ !mf->SetPolicy(i->first, status))
{
return false;
}
@@ -604,7 +604,7 @@ bool cmPolicies::ApplyPolicyVersion(cmMakefile *mf,
}
else
{
- if (!mf->SetPolicy(i->second->ID, cmPolicies::NEW))
+ if (!mf->SetPolicy(i->first, cmPolicies::NEW))
{
return false;
}