clang-tidy: fix readability-redundant-string-cstr lints

This commit is contained in:
Ben Boeckel
2022-11-22 13:57:41 -05:00
parent c61ece5c40
commit 07172aa31e
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ void cmLocalVisualStudio7Generator::GenerateTarget(cmGeneratorTarget* target)
// Generate the project file and replace it atomically with
// copy-if-different. We use a separate timestamp so that the IDE
// does not reload project files unnecessarily.
cmGeneratedFileStream fout(fname.c_str());
cmGeneratedFileStream fout(fname);
fout.SetCopyIfDifferent(true);
this->WriteVCProjFile(fout, lname, target);
if (fout.Close()) {