From 13684e2b78bf273b20e6ea3acf9defe61e871327 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 2 Apr 2014 14:31:04 -0400 Subject: [PATCH] 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(). --- Source/cmMakefile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index b0ff2588c..621b8ee8b 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 setting. if(!var.empty()) { - if(const char* val = this->GetDefinition(var.c_str())) + if(const char* val = this->GetDefinition(var)) { return cmSystemTools::IsOn(val); }