From c193b25cd3cb49e063c77d24ce76b4c0d8f07ef1 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 1 Mar 2023 11:35:03 +0100 Subject: [PATCH] src: remove shadowed variable in OptionsParser PR-URL: https://github.com/nodejs/node/pull/46672 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Darshan Sen --- src/node_options-inl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node_options-inl.h b/src/node_options-inl.h index ffc39a23b13378..4b4b9f9b4af7b2 100644 --- a/src/node_options-inl.h +++ b/src/node_options-inl.h @@ -387,12 +387,12 @@ void OptionsParser::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(options) = - it->second.target_value; + *imp->second.target_field->template Lookup(options) = + imp->second.target_value; } } }