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().
This commit is contained in:
Brad King 2014-04-02 14:31:04 -04:00
parent 8018fcca6e
commit 13684e2b78
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}