cmPolicies: Use more-direct ID access.

This commit is contained in:
Stephen Kelly 2015-05-03 10:27:36 +02:00
parent 8c204133e5
commit dbf680d670

View File

@ -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;
}