summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2023-03-01 11:35:03 +0100
committerGitHub <noreply@github.com>2023-03-01 10:35:03 +0000
commit97d0f777ac3c4087bac378387e288c800f147522 (patch)
tree9c5e4030462fe531f75cf646b2b454a9cfe664d9 /src
parent986498b7b329f454507b3a47e9f20cbcdb029dc2 (diff)
downloadnode-new-97d0f777ac3c4087bac378387e288c800f147522.tar.gz
src: remove shadowed variable in OptionsParser
PR-URL: https://github.com/nodejs/node/pull/46672 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_options-inl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node_options-inl.h b/src/node_options-inl.h
index ffc39a23b1..4b4b9f9b4a 100644
--- a/src/node_options-inl.h
+++ b/src/node_options-inl.h
@@ -387,12 +387,12 @@ void OptionsParser<Options>::Parse(
implied_name.insert(2, "no-");
}
auto implications = implications_.equal_range(implied_name);
- for (auto it = implications.first; it != implications.second; ++it) {
- if (it->second.type == kV8Option) {
- v8_args->push_back(it->second.name);
+ for (auto imp = implications.first; imp != implications.second; ++imp) {
+ if (imp->second.type == kV8Option) {
+ v8_args->push_back(imp->second.name);
} else {
- *it->second.target_field->template Lookup<bool>(options) =
- it->second.target_value;
+ *imp->second.target_field->template Lookup<bool>(options) =
+ imp->second.target_value;
}
}
}