summaryrefslogtreecommitdiff
path: root/src/mongo/db/cst
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2022-09-15 13:03:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-15 13:55:58 +0000
commit9b5cbbbc2d3cae926689e4e632daa73062bb1432 (patch)
tree431cc1b116363ae6918412ed55086a77db66ce24 /src/mongo/db/cst
parent1b942407096c139fdb69b1d61cfe20e4e5c0f1eb (diff)
downloadmongo-9b5cbbbc2d3cae926689e4e632daa73062bb1432.tar.gz
SERVER-68994 Fix AUTO_CAUSES_COPY coverity errors
Diffstat (limited to 'src/mongo/db/cst')
-rw-r--r--src/mongo/db/cst/cst_match_translation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/cst/cst_match_translation.cpp b/src/mongo/db/cst/cst_match_translation.cpp
index ba7184e585f..11459e12a58 100644
--- a/src/mongo/db/cst/cst_match_translation.cpp
+++ b/src/mongo/db/cst/cst_match_translation.cpp
@@ -141,7 +141,7 @@ MatcherTypeSet getMatcherTypeSet(const CNode& argument) {
a.payload);
};
if (auto children = stdx::get_if<CNode::ArrayChildren>(&argument.payload)) {
- for (auto child : (*children)) {
+ for (const auto& child : (*children)) {
add_individual_to_type_set(child);
}
} else {