Skip to content

Commit b25ee52

Browse files
codebyteredanielleadams
authored andcommittedApr 11, 2023
src: remove shadowed variable in OptionsParser
PR-URL: #46672 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 88baf98 commit b25ee52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/node_options-inl.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@ void OptionsParser<Options>::Parse(
387387
implied_name.insert(2, "no-");
388388
}
389389
auto implications = implications_.equal_range(implied_name);
390-
for (auto it = implications.first; it != implications.second; ++it) {
391-
if (it->second.type == kV8Option) {
392-
v8_args->push_back(it->second.name);
390+
for (auto imp = implications.first; imp != implications.second; ++imp) {
391+
if (imp->second.type == kV8Option) {
392+
v8_args->push_back(imp->second.name);
393393
} else {
394-
*it->second.target_field->template Lookup<bool>(options) =
395-
it->second.target_value;
394+
*imp->second.target_field->template Lookup<bool>(options) =
395+
imp->second.target_value;
396396
}
397397
}
398398
}

0 commit comments

Comments
 (0)
Please sign in to comment.