From b791ffc6de6dcc33739bb36bec4824dc44417961 Mon Sep 17 00:00:00 2001 From: rubidium42 Date: Wed, 26 May 2021 20:51:17 +0200 Subject: Fix: do not hide parameter by local variable with the same name --- src/network/network_content.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/network') diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 2b90cf415..e09b05ec7 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -1010,9 +1010,9 @@ void ClientNetworkContentSocketHandler::CheckDependencyState(ContentInfo *ci) /* First check whether anything depends on us */ int sel_count = 0; bool force_selection = false; - for (const ContentInfo *ci : parents) { - if (ci->IsSelected()) sel_count++; - if (ci->state == ContentInfo::SELECTED) force_selection = true; + for (const ContentInfo *parent_ci : parents) { + if (parent_ci->IsSelected()) sel_count++; + if (parent_ci->state == ContentInfo::SELECTED) force_selection = true; } if (sel_count == 0) { /* Nothing depends on us */ @@ -1027,8 +1027,8 @@ void ClientNetworkContentSocketHandler::CheckDependencyState(ContentInfo *ci) this->ReverseLookupTreeDependency(parents, c); /* Is there anything that is "force" selected?, if so... we're done. */ - for (const ContentInfo *ci : parents) { - if (ci->state != ContentInfo::SELECTED) continue; + for (const ContentInfo *parent_ci : parents) { + if (parent_ci->state != ContentInfo::SELECTED) continue; force_selection = true; break; -- cgit v1.2.3-70-g09d2