summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content.cpp10
1 files changed, 5 insertions, 5 deletions
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;