Skip to content

Commit

Permalink
Change iterator to reference to silence clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Feb 2, 2025
1 parent 93a6959 commit 0342eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gridcoin/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ WhitelistSnapshot Whitelist::Snapshot(const ProjectEntry::ProjectFilterFlag& fil
// projects is relatively small.
ProjectEntryMap project_entries = m_project_entries;

for (auto iter : project_entries) {
for (auto& iter : project_entries) {
if (include_override) {
// This is the actual override. The most important thing here is the greylist_ptr->Contains(iter.first) part. This
// applies the current state of the greylist at the time of the construction of the whitelist snapshot, without
Expand Down

0 comments on commit 0342eaf

Please sign in to comment.