cmPolicies: Use more-direct ID access.
This commit is contained in:
parent
8c204133e5
commit
dbf680d670
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue