diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2021-03-14 21:11:21 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-24 01:03:55 +0000 |
commit | c2a96ca05d4e196d3b5ffb81d05a88346e4e8fbe (patch) | |
tree | 6364d416be318b9b2ddd021b8bfc00d40de44830 /src/mongo/db/matcher/expression.h | |
parent | a97002800ba3597cea321cae42298da4a3b12626 (diff) | |
download | mongo-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.h | 2 |
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). |