diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 18:56:03 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:29 (GMT) |
commit | c61ece5c40a30e99e0f3a45c76dd802a14e4db96 (patch) | |
tree | fb42fb1dfd471174c1bb40a6c4eccd813fee499e /Source/cmGlobalVisualStudio8Generator.cxx | |
parent | 64c0702f91fb1e9ff8f6afd55d8fc79003426d6b (diff) | |
download | CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.zip CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.tar.gz CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.tar.bz2 |
clang-tidy: fix `modernize-use-auto` lints
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 9585372..1e810b4 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -238,8 +238,7 @@ bool cmGlobalVisualStudio8Generator::AddCheckTarget() // Sort the list of input files and remove duplicates. std::sort(listFiles.begin(), listFiles.end(), std::less<std::string>()); - std::vector<std::string>::iterator new_end = - std::unique(listFiles.begin(), listFiles.end()); + auto new_end = std::unique(listFiles.begin(), listFiles.end()); listFiles.erase(new_end, listFiles.end()); // Create a rule to re-run CMake. @@ -325,8 +324,7 @@ void cmGlobalVisualStudio8Generator::WriteProjectConfigurations( << (!platformMapping.empty() ? platformMapping : this->GetPlatformName()) << "\n"; - std::set<std::string>::const_iterator ci = - configsPartOfDefaultBuild.find(i); + auto ci = configsPartOfDefaultBuild.find(i); if (!(ci == configsPartOfDefaultBuild.end())) { fout << "\t\t{" << guid << "}." << i << "|" << this->GetPlatformName() << ".Build.0 = " << dstConfig << "|" |