summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Murphy <benjamin_murphy@me.com>2016-03-31 10:45:14 -0400
committerBenjamin Murphy <benjamin_murphy@me.com>2016-03-31 10:47:44 -0400
commita17c8d9b912965a11b9291b21a1b9e417893de33 (patch)
treeff82b7fa5abf83cb5414c9dfab3ddad51db40ada
parentdfabadb09387a4236ee7675cd02d39b17affaf39 (diff)
downloadmongo-a17c8d9b912965a11b9291b21a1b9e417893de33.tar.gz
SERVER-23444 Fixed pessimizing move.
-rw-r--r--src/mongo/db/matcher/expression_tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_tree.h b/src/mongo/db/matcher/expression_tree.h
index 50786402a85..1e751f0f98c 100644
--- a/src/mongo/db/matcher/expression_tree.h
+++ b/src/mongo/db/matcher/expression_tree.h
@@ -68,7 +68,7 @@ public:
virtual std::unique_ptr<MatchExpression> releaseChild(size_t i) {
auto child = std::unique_ptr<MatchExpression>(_expressions[i]);
_expressions[i] = nullptr;
- return std::move(child);
+ return child;
}
virtual std::vector<MatchExpression*>* getChildVector() {