mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Remove redundant c_str() calls.
Run clang-tidy's readability-redundant-string-cstr checker. Ignore findings in kwsys.
This commit is contained in:
@@ -958,7 +958,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule(
|
||||
if (emittedTargets.insert(name).second) {
|
||||
path = "... ";
|
||||
path += name;
|
||||
lg->AppendEcho(commands, path.c_str());
|
||||
lg->AppendEcho(commands, path);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -969,7 +969,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule(
|
||||
o != localHelp.end(); ++o) {
|
||||
path = "... ";
|
||||
path += *o;
|
||||
lg->AppendEcho(commands, path.c_str());
|
||||
lg->AppendEcho(commands, path);
|
||||
}
|
||||
lg->WriteMakeRule(ruleFileStream, "Help Target", "help", no_depends,
|
||||
commands, true);
|
||||
|
||||
Reference in New Issue
Block a user