diff options
author | David Percy <david.percy@mongodb.com> | 2020-09-17 04:42:36 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-30 22:50:57 +0000 |
commit | 8c79f80a154b337e28a4d9e364bca048f3668f21 (patch) | |
tree | 6ec1b409d16e148838d26650e93e76ee458b1f2f /src/mongo/db/matcher/expression_tree.h | |
parent | d4a95bccc5f2e6e66cb13ae40a980706112f6524 (diff) | |
download | mongo-8c79f80a154b337e28a4d9e364bca048f3668f21.tar.gz |
SERVER-48851 CST test-command and $expr, $text, $where, $mod
Diffstat (limited to 'src/mongo/db/matcher/expression_tree.h')
-rw-r--r-- | src/mongo/db/matcher/expression_tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_tree.h b/src/mongo/db/matcher/expression_tree.h index a37fa00b48f..25d71dde78f 100644 --- a/src/mongo/db/matcher/expression_tree.h +++ b/src/mongo/db/matcher/expression_tree.h @@ -51,6 +51,10 @@ public: */ void add(MatchExpression* e); + void add(std::unique_ptr<MatchExpression> e) { + add(e.release()); + } + /** * clears all the thingsd we own, and does NOT delete * someone else has taken ownership |