summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/or.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/or.cpp')
-rw-r--r--src/mongo/db/exec/or.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/or.cpp b/src/mongo/db/exec/or.cpp
index 8269b599f43..3800536b62c 100644
--- a/src/mongo/db/exec/or.cpp
+++ b/src/mongo/db/exec/or.cpp
@@ -47,8 +47,8 @@ const char* OrStage::kStageType = "OR";
OrStage::OrStage(OperationContext* opCtx, WorkingSet* ws, bool dedup, const MatchExpression* filter)
: PlanStage(kStageType, opCtx), _ws(ws), _filter(filter), _currentChild(0), _dedup(dedup) {}
-void OrStage::addChild(PlanStage* child) {
- _children.emplace_back(child);
+void OrStage::addChild(std::unique_ptr<PlanStage> child) {
+ _children.emplace_back(std::move(child));
}
void OrStage::addChildren(Children childrenToAdd) {