summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/querytests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r--src/mongo/dbtests/querytests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp
index 677764e3d3b..fa8ff99ae97 100644
--- a/src/mongo/dbtests/querytests.cpp
+++ b/src/mongo/dbtests/querytests.cpp
@@ -1815,7 +1815,7 @@ public:
void checkNewDBInResults(const std::vector<BSONObj> results, const int dbNum) {
std::string target = "unittestsdb" + std::to_string(dbNum);
- for (auto res : results) {
+ for (const auto& res : results) {
if (res["name"].str() == target) {
return;
}