diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 13:57:41 -0500 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 12:39:29 -0500 |
commit | 07172aa31ec468baea0dc3e52ce6f706f55d6f12 (patch) | |
tree | e8c4dda31188b6acc14519902728195faf275734 /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | c61ece5c40a30e99e0f3a45c76dd802a14e4db96 (diff) | |
download | cmake-07172aa31ec468baea0dc3e52ce6f706f55d6f12.tar.gz |
clang-tidy: fix `readability-redundant-string-cstr` lints
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 1e810b4de6..bc04d4c664 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -55,7 +55,7 @@ std::string cmGlobalVisualStudio8Generator::FindDevEnvCommand() std::string vsxkey = cmStrCat("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\", this->GetIDEVersion(), ";InstallDir"); - if (cmSystemTools::ReadRegistryValue(vsxkey.c_str(), vsxcmd, + if (cmSystemTools::ReadRegistryValue(vsxkey, vsxcmd, cmSystemTools::KeyWOW64_32)) { cmSystemTools::ConvertToUnixSlashes(vsxcmd); vsxcmd += "/VCExpress.exe"; @@ -191,7 +191,7 @@ bool cmGlobalVisualStudio8Generator::AddCheckTarget() cmStrCat(generators[0]->GetMakefile()->GetCurrentBinaryDirectory(), '/', stampList); std::string stampFile; - cmGeneratedFileStream fout(stampListFile.c_str()); + cmGeneratedFileStream fout(stampListFile); for (const auto& gi : generators) { stampFile = cmStrCat(gi->GetMakefile()->GetCurrentBinaryDirectory(), "/CMakeFiles/generate.stamp"); |