summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/shell_options.cpp')
-rw-r--r--src/mongo/shell/shell_options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_options.cpp b/src/mongo/shell/shell_options.cpp
index 69bbb071493..f22556d8347 100644
--- a/src/mongo/shell/shell_options.cpp
+++ b/src/mongo/shell/shell_options.cpp
@@ -311,7 +311,7 @@ Status storeMongoShellOptions(const moe::Environment& params,
if (params.count("setShellParameter")) {
auto ssp = params["setShellParameter"].as<std::map<std::string, std::string>>();
auto* paramSet = ServerParameterSet::getNodeParameterSet();
- for (auto it : ssp) {
+ for (const auto& it : ssp) {
const auto& name = it.first;
auto param = paramSet->getIfExists(name);
if (!param || !kSetShellParameterAllowlist.count(name)) {