summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-02 18:31:04 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-02 18:44:45 (GMT)
commit13684e2b78bf273b20e6ea3acf9defe61e871327 (patch)
tree48c726cf5f09136836c7d7454e990b24f4f35864
parent8018fcca6e055a0f12a17fc8324128080a9ec568 (diff)
downloadCMake-13684e2b78bf273b20e6ea3acf9defe61e871327.zip
CMake-13684e2b78bf273b20e6ea3acf9defe61e871327.tar.gz
CMake-13684e2b78bf273b20e6ea3acf9defe61e871327.tar.bz2
cmMakefile: Port PolicyOptionalWarningEnabled to string APIs
This method was added in a commit based on a release branch that pre-dated the std::string API changes. Port the implementation to use the string APIs instead of c_str().
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index b0ff258..621b8ee 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4336,7 +4336,7 @@ bool cmMakefile::PolicyOptionalWarningEnabled(std::string const& var)
// Check for an explicit CMAKE_POLICY_WARNING_CMP<NNNN> setting.
if(!var.empty())
{
- if(const char* val = this->GetDefinition(var.c_str()))
+ if(const char* val = this->GetDefinition(var))
{
return cmSystemTools::IsOn(val);
}