diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-01-22 13:58:58 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-01-22 14:16:40 (GMT) |
commit | d6d4eaac0659b1efea785888f2aab759a1b6b557 (patch) | |
tree | d3a738067f2ffb39ffb28e0be029bd927350df1d /Source/cmMakefile.cxx | |
parent | 2a6e56e078666a48d3e34b36c1500d44c429ecf0 (diff) | |
download | CMake-d6d4eaac0659b1efea785888f2aab759a1b6b557.zip CMake-d6d4eaac0659b1efea785888f2aab759a1b6b557.tar.gz CMake-d6d4eaac0659b1efea785888f2aab759a1b6b557.tar.bz2 |
cmMakefile: Constify policies accessors.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 6266f82..99aad51 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4287,7 +4287,7 @@ std::vector<cmSourceFile*> cmMakefile::GetQtUiFilesWithOptions() const //---------------------------------------------------------------------------- cmPolicies::PolicyStatus -cmMakefile::GetPolicyStatus(cmPolicies::PolicyID id) +cmMakefile::GetPolicyStatus(cmPolicies::PolicyID id) const { // Get the current setting of the policy. cmPolicies::PolicyStatus cur = this->GetPolicyStatusInternal(id); @@ -4315,10 +4315,10 @@ cmMakefile::GetPolicyStatus(cmPolicies::PolicyID id) //---------------------------------------------------------------------------- cmPolicies::PolicyStatus -cmMakefile::GetPolicyStatusInternal(cmPolicies::PolicyID id) +cmMakefile::GetPolicyStatusInternal(cmPolicies::PolicyID id) const { // Is the policy set in our stack? - for(PolicyStackType::reverse_iterator psi = this->PolicyStack.rbegin(); + for(PolicyStackType::const_reverse_iterator psi = this->PolicyStack.rbegin(); psi != this->PolicyStack.rend(); ++psi) { PolicyStackEntry::const_iterator pse = psi->find(id); @@ -4468,7 +4468,7 @@ bool cmMakefile::SetPolicyVersion(const char *version) ApplyPolicyVersion(this,version); } -cmPolicies *cmMakefile::GetPolicies() +cmPolicies *cmMakefile::GetPolicies() const { if (!this->GetCMakeInstance()) { |