Remove redundant c_str() calls.

Run clang-tidy's readability-redundant-string-cstr checker.
Ignore findings in kwsys.
This commit is contained in:
Daniel Pfeifer
2016-05-26 22:52:22 +02:00
parent acd8a73044
commit 1b2bb93302
19 changed files with 49 additions and 60 deletions

View File

@@ -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);