summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression.h
diff options
context:
space:
mode:
authorJacob Evans <jacob.evans@10gen.com>2021-03-14 21:11:21 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-24 01:03:55 +0000
commitc2a96ca05d4e196d3b5ffb81d05a88346e4e8fbe (patch)
tree6364d416be318b9b2ddd021b8bfc00d40de44830 /src/mongo/db/matcher/expression.h
parenta97002800ba3597cea321cae42298da4a3b12626 (diff)
downloadmongo-c2a96ca05d4e196d3b5ffb81d05a88346e4e8fbe.tar.gz
SERVER-55183 Fix owning raw pointers in matcher/
Diffstat (limited to 'src/mongo/db/matcher/expression.h')
-rw-r--r--src/mongo/db/matcher/expression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression.h b/src/mongo/db/matcher/expression.h
index 2a9216e85e6..6d8a0d6eab5 100644
--- a/src/mongo/db/matcher/expression.h
+++ b/src/mongo/db/matcher/expression.h
@@ -328,7 +328,7 @@ public:
* Do not use to traverse the MatchExpression tree. Use numChildren() and getChild(), which
* provide access to all nodes.
*/
- virtual boost::optional<std::vector<MatchExpression*>&> getChildVector() = 0;
+ virtual std::vector<std::unique_ptr<MatchExpression>>* getChildVector() = 0;
/**
* Get the path of the leaf. Returns StringData() if there is no path (node is logical).