diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-24 14:31:15 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-25 17:26:09 +0000 |
commit | deb9f8e6bf9517061404cf2f476cd08f60687d83 (patch) | |
tree | b6c962dbc53f972b35766789a2170d961eb50c34 /src/mongo/db/commands/generic.cpp | |
parent | 8e53f9b4db4f3cc2c09e6a3fa2c29781142eb896 (diff) | |
download | mongo-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.cpp | 2 |
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); |