mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -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:
@@ -95,7 +95,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
||||
std::string errorMsg =
|
||||
"Macro invoked with incorrect arguments for macro named: ";
|
||||
errorMsg += this->Args[0];
|
||||
this->SetError(errorMsg.c_str());
|
||||
this->SetError(errorMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -276,8 +276,8 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
|
||||
f->Functions = this->Functions;
|
||||
mf.RecordPolicies(f->Policies);
|
||||
std::string newName = "_" + this->Args[0];
|
||||
mf.GetCMakeInstance()->RenameCommand(this->Args[0].c_str(),
|
||||
newName.c_str());
|
||||
mf.GetCMakeInstance()->RenameCommand(this->Args[0],
|
||||
newName);
|
||||
mf.AddCommand(f);
|
||||
|
||||
// remove the function blocker now that the macro is defined
|
||||
|
||||
Reference in New Issue
Block a user