mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05: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:
@@ -38,7 +38,7 @@ bool cmGetSourceFilePropertyCommand
|
||||
this->Makefile->AddDefinition(var, sf->GetLanguage().c_str());
|
||||
return true;
|
||||
}
|
||||
const char *prop = sf->GetPropertyForUser(args[2].c_str());
|
||||
const char *prop = sf->GetPropertyForUser(args[2]);
|
||||
if (prop)
|
||||
{
|
||||
this->Makefile->AddDefinition(var, prop);
|
||||
|
||||
Reference in New Issue
Block a user