mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
Remove some c_str() calls.
Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
This commit is contained in:
@@ -35,7 +35,7 @@ bool cmFindProgramCommand
|
||||
// value.
|
||||
if(this->AlreadyInCacheWithoutMetaInfo)
|
||||
{
|
||||
this->Makefile->AddCacheDefinition(this->VariableName.c_str(), "",
|
||||
this->Makefile->AddCacheDefinition(this->VariableName, "",
|
||||
this->VariableDocumentation.c_str(),
|
||||
cmCacheManager::FILEPATH);
|
||||
}
|
||||
@@ -46,14 +46,14 @@ bool cmFindProgramCommand
|
||||
if(result != "")
|
||||
{
|
||||
// Save the value in the cache
|
||||
this->Makefile->AddCacheDefinition(this->VariableName.c_str(),
|
||||
this->Makefile->AddCacheDefinition(this->VariableName,
|
||||
result.c_str(),
|
||||
this->VariableDocumentation.c_str(),
|
||||
cmCacheManager::FILEPATH);
|
||||
|
||||
return true;
|
||||
}
|
||||
this->Makefile->AddCacheDefinition(this->VariableName.c_str(),
|
||||
this->Makefile->AddCacheDefinition(this->VariableName,
|
||||
(this->VariableName + "-NOTFOUND").c_str(),
|
||||
this->VariableDocumentation.c_str(),
|
||||
cmCacheManager::FILEPATH);
|
||||
|
||||
Reference in New Issue
Block a user