diff options
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 |