mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
strings: Remove redundant calls to std::string::c_str()
Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
This commit is contained in:
@@ -700,7 +700,7 @@ cmLocalUnixMakefileGenerator3
|
||||
// name. This is needed to avoid funny quoting problems on
|
||||
// lines with shell redirection operators.
|
||||
std::string scmd;
|
||||
if(cmSystemTools::GetShortPath(cmd.c_str(), scmd))
|
||||
if(cmSystemTools::GetShortPath(cmd, scmd))
|
||||
{
|
||||
return this->Convert(scmd, NONE, SHELL);
|
||||
}
|
||||
@@ -1733,7 +1733,7 @@ void cmLocalUnixMakefileGenerator3::CheckMultipleOutputs(bool verbose)
|
||||
<< depender << "\" does not exist." << std::endl;
|
||||
cmSystemTools::Stdout(msg.str().c_str());
|
||||
}
|
||||
cmSystemTools::RemoveFile(dependee.c_str());
|
||||
cmSystemTools::RemoveFile(dependee);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1988,7 +1988,7 @@ void cmLocalUnixMakefileGenerator3::ClearDependencies(cmMakefile* mf,
|
||||
// Remove the internal dependency check file to force
|
||||
// regeneration.
|
||||
std::string internalDependFile = dir + "/depend.internal";
|
||||
cmSystemTools::RemoveFile(internalDependFile.c_str());
|
||||
cmSystemTools::RemoveFile(internalDependFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user