summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_algo_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_algo_test.cpp')
-rw-r--r--src/mongo/db/matcher/expression_algo_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_algo_test.cpp b/src/mongo/db/matcher/expression_algo_test.cpp
index a108a7a7f3b..9effbf6b0b9 100644
--- a/src/mongo/db/matcher/expression_algo_test.cpp
+++ b/src/mongo/db/matcher/expression_algo_test.cpp
@@ -49,7 +49,7 @@ public:
ParsedMatchExpression(const std::string& str) : _obj(fromjson(str)) {
StatusWithMatchExpression result = MatchExpressionParser::parse(_obj);
ASSERT_OK(result.getStatus());
- _expr.reset(result.getValue());
+ _expr = std::move(result.getValue());
}
const MatchExpression* get() const {