From dbf680d670e399cc3b042721a1179fba0429073b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 3 May 2015 10:27:36 +0200 Subject: [PATCH] cmPolicies: Use more-direct ID access. --- Source/cmPolicies.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx index 2d7c71002..10f85ac50 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; }