diff options
author | Brad King <brad.king@kitware.com> | 2014-04-02 18:31:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-02 18:44:45 (GMT) |
commit | 13684e2b78bf273b20e6ea3acf9defe61e871327 (patch) | |
tree | 48c726cf5f09136836c7d7454e990b24f4f35864 | |
parent | 8018fcca6e055a0f12a17fc8324128080a9ec568 (diff) | |
download | CMake-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.cxx | 2 |
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); } |