diff options
author | Brad King <brad.king@kitware.com> | 2024-09-17 17:54:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-09-20 17:45:45 (GMT) |
commit | 445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21 (patch) | |
tree | 37194d330d9ccd503ad0aa1239b037f4a409bd97 /Source | |
parent | 3ce26c57ba06b5a02e153b8bb16eb8c60938e4ce (diff) | |
download | CMake-445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21.zip CMake-445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21.tar.gz CMake-445a82e5da1ad5d17db7e7c3ed3b1a8b1d629e21.tar.bz2 |
cmComputeLinkDepends: Shorten local variable name
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index f12bcdb..1c7b478 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -431,8 +431,8 @@ public: this->Groups = &groups; // record all libraries as part of groups to ensure correct // deduplication: libraries as part of groups are always kept. - for (const auto& group : groups) { - for (auto index : group.second) { + for (const auto& g : groups) { + for (auto index : g.second) { this->Emitted.insert(index); } } @@ -477,8 +477,8 @@ public: // expand groups if (this->Groups) { - for (const auto& group : *this->Groups) { - const LinkEntry& groupEntry = this->Entries[group.first]; + for (const auto& g : *this->Groups) { + const LinkEntry& groupEntry = this->Entries[g.first]; auto it = this->FinalEntries.begin(); while (true) { it = std::find_if(it, this->FinalEntries.end(), @@ -489,8 +489,8 @@ public: break; } it->Item.Value = "</LINK_GROUP>"; - for (auto index = group.second.rbegin(); - index != group.second.rend(); ++index) { + for (auto index = g.second.rbegin(); index != g.second.rend(); + ++index) { it = this->FinalEntries.insert(it, this->Entries[*index]); } it = this->FinalEntries.insert(it, groupEntry); @@ -1252,10 +1252,10 @@ void cmComputeLinkDepends::AddLinkEntries(size_t depender_index, std::vector<size_t> indexes; bool entryHandled = false; // search any occurrence of the library in already defined groups - for (const auto& group : this->GroupItems) { - for (auto index : group.second) { + for (const auto& g : this->GroupItems) { + for (auto index : g.second) { if (entry.Item.Value == this->EntryList[index].Item.Value) { - indexes.push_back(group.first); + indexes.push_back(g.first); entryHandled = true; break; } |