summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/generic.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-09-24 14:31:15 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-25 17:26:09 +0000
commitdeb9f8e6bf9517061404cf2f476cd08f60687d83 (patch)
treeb6c962dbc53f972b35766789a2170d961eb50c34 /src/mongo/db/commands/generic.cpp
parent8e53f9b4db4f3cc2c09e6a3fa2c29781142eb896 (diff)
downloadmongo-deb9f8e6bf9517061404cf2f476cd08f60687d83.tar.gz
SERVER-51084 tweak range loop variable types to fix xcode build
Diffstat (limited to 'src/mongo/db/commands/generic.cpp')
-rw-r--r--src/mongo/db/commands/generic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/generic.cpp b/src/mongo/db/commands/generic.cpp
index af73d11052b..f13a73aa257 100644
--- a/src/mongo/db/commands/generic.cpp
+++ b/src/mongo/db/commands/generic.cpp
@@ -166,7 +166,7 @@ public:
BSONObjBuilder& result) {
// Sort the command names before building the result BSON.
std::vector<Command*> commands;
- for (const auto command : globalCommandRegistry()->allCommands()) {
+ for (const auto& command : globalCommandRegistry()->allCommands()) {
// Don't show oldnames
if (command.first == command.second->getName())
commands.push_back(command.second);