summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:57:41 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commit07172aa31ec468baea0dc3e52ce6f706f55d6f12 (patch)
treee8c4dda31188b6acc14519902728195faf275734 /Source/cmLocalVisualStudio7Generator.cxx
parentc61ece5c40a30e99e0f3a45c76dd802a14e4db96 (diff)
downloadCMake-07172aa31ec468baea0dc3e52ce6f706f55d6f12.zip
CMake-07172aa31ec468baea0dc3e52ce6f706f55d6f12.tar.gz
CMake-07172aa31ec468baea0dc3e52ce6f706f55d6f12.tar.bz2
clang-tidy: fix `readability-redundant-string-cstr` lints
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index c3b5dfc..1cceefa 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -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()) {