summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:56:03 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commitc61ece5c40a30e99e0f3a45c76dd802a14e4db96 (patch)
treefb42fb1dfd471174c1bb40a6c4eccd813fee499e /Source/cmGlobalVisualStudio71Generator.cxx
parent64c0702f91fb1e9ff8f6afd55d8fc79003426d6b (diff)
downloadCMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.zip
CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.tar.gz
CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.tar.bz2
clang-tidy: fix `modernize-use-auto` lints
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index 86d4785..3e84765 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -125,7 +125,7 @@ void cmGlobalVisualStudio71Generator::WriteProject(std::ostream& fout,
fout << "EndProject\n";
- UtilityDependsMap::iterator ui = this->UtilityDepends.find(t);
+ auto ui = this->UtilityDepends.find(t);
if (ui != this->UtilityDepends.end()) {
const char* uname = ui->second.c_str();
/* clang-format off */
@@ -218,8 +218,7 @@ void cmGlobalVisualStudio71Generator::WriteProjectConfigurations(
}
fout << "\t\t{" << guid << "}." << i << ".ActiveCfg = " << dstConfig << "|"
<< platformName << std::endl;
- std::set<std::string>::const_iterator ci =
- configsPartOfDefaultBuild.find(i);
+ auto ci = configsPartOfDefaultBuild.find(i);
if (!(ci == configsPartOfDefaultBuild.end())) {
fout << "\t\t{" << guid << "}." << i << ".Build.0 = " << dstConfig << "|"
<< platformName << std::endl;