summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-03 08:11:05 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-04 20:32:20 (GMT)
commit13981f20688279b4e10faca67b7020946c9ef733 (patch)
treebe40e3f590650a6c50c6fad611223ade3e9aebc0
parent23e2bcc8dba21b532ebbde20518f8a9f2d312103 (diff)
downloadCMake-13981f20688279b4e10faca67b7020946c9ef733.zip
CMake-13981f20688279b4e10faca67b7020946c9ef733.tar.gz
CMake-13981f20688279b4e10faca67b7020946c9ef733.tar.bz2
cmPolicies: Make all API static.
-rw-r--r--Source/cmPolicies.cxx2
-rw-r--r--Source/cmPolicies.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmPolicies.cxx b/Source/cmPolicies.cxx
index 51bcde3..c95520f 100644
--- a/Source/cmPolicies.cxx
+++ b/Source/cmPolicies.cxx
@@ -243,7 +243,7 @@ bool cmPolicies::ApplyPolicyVersion(cmMakefile *mf,
{
if (isPolicyNewerThan(pid, majorVer, minorVer, patchVer))
{
- if(this->GetPolicyStatus(pid) == cmPolicies::REQUIRED_ALWAYS)
+ if(cmPolicies::GetPolicyStatus(pid) == cmPolicies::REQUIRED_ALWAYS)
{
ancientPolicies.push_back(pid);
}
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 1e2849d..fee7dd9 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -250,22 +250,22 @@ public:
};
///! convert a string policy ID into a number
- bool GetPolicyID(const char *id, /* out */ cmPolicies::PolicyID &pid);
+ static bool GetPolicyID(const char *id, /* out */ cmPolicies::PolicyID &pid);
///! Get the default status for a policy
- cmPolicies::PolicyStatus GetPolicyStatus(cmPolicies::PolicyID id);
+ static cmPolicies::PolicyStatus GetPolicyStatus(cmPolicies::PolicyID id);
///! Set a policy level for this listfile
- bool ApplyPolicyVersion(cmMakefile *mf, const char *version);
+ static bool ApplyPolicyVersion(cmMakefile *mf, const char *version);
///! return a warning string for a given policy
- std::string GetPolicyWarning(cmPolicies::PolicyID id);
+ static std::string GetPolicyWarning(cmPolicies::PolicyID id);
///! return an error string for when a required policy is unspecified
- std::string GetRequiredPolicyError(cmPolicies::PolicyID id);
+ static std::string GetRequiredPolicyError(cmPolicies::PolicyID id);
///! return an error string for when a required policy is unspecified
- std::string GetRequiredAlwaysPolicyError(cmPolicies::PolicyID id);
+ static std::string GetRequiredAlwaysPolicyError(cmPolicies::PolicyID id);
/** Represent a set of policy values. */
typedef std::map<PolicyID, PolicyStatus> PolicyMap;