summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_solution_test.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-08-01 12:00:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-01 16:17:37 +0000
commit98f525dc3cb20fe3a196976bac08bcb62fa30618 (patch)
tree6e40c68b20267488d3c7a7d7011a77f74c04a00f /src/mongo/db/query/query_solution_test.cpp
parentd4e44c7c61512e7e823a4e46e91ab393b7d4b8fc (diff)
downloadmongo-98f525dc3cb20fe3a196976bac08bcb62fa30618.tar.gz
SERVER-49800 remove unnecessary std::move() calls
- std::move() on const ref argument to MatchExpression::parse() - noop std::move on const lambda capture (CollectionCatalog::setCollectionNamespace() rollback handler) - redundant noexcept check in embedded
Diffstat (limited to 'src/mongo/db/query/query_solution_test.cpp')
-rw-r--r--src/mongo/db/query/query_solution_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_solution_test.cpp b/src/mongo/db/query/query_solution_test.cpp
index 5b75631d733..bcb4ea7c725 100644
--- a/src/mongo/db/query/query_solution_test.cpp
+++ b/src/mongo/db/query/query_solution_test.cpp
@@ -774,8 +774,7 @@ auto createMatchExprAndProjection(const BSONObj& query, const BSONObj& projObj)
auto opCtx = serviceCtx.makeOperationContext();
const boost::intrusive_ptr<ExpressionContext> expCtx(new ExpressionContext(
opCtx.get(), std::unique_ptr<CollatorInterface>(nullptr), NamespaceString("test.dummy")));
- StatusWithMatchExpression queryMatchExpr =
- MatchExpressionParser::parse(query, std::move(expCtx));
+ StatusWithMatchExpression queryMatchExpr = MatchExpressionParser::parse(query, expCtx);
ASSERT(queryMatchExpr.isOK());
projection_ast::Projection res = projection_ast::parse(
expCtx, projObj, queryMatchExpr.getValue().get(), query, ProjectionPolicies{});