diff options
author | Jacob Evans <jacob.evans@10gen.com> | 2020-07-27 22:13:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-28 02:29:48 +0000 |
commit | 0982b852998098f9d1c901a53e74da7dfebc556f (patch) | |
tree | 763a0f25a37694896965b8faba3433d8e4b8a4ff /src/mongo/db/cst | |
parent | 46af3f0a7e6c9d26423ac72d0f4faec8f3ee1350 (diff) | |
download | mongo-0982b852998098f9d1c901a53e74da7dfebc556f.tar.gz |
SERVER-49300 Remove errant std::move
Diffstat (limited to 'src/mongo/db/cst')
-rw-r--r-- | src/mongo/db/cst/cst_pipeline_translation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/cst/cst_pipeline_translation.cpp b/src/mongo/db/cst/cst_pipeline_translation.cpp index 33e84e38714..89f0d26b973 100644 --- a/src/mongo/db/cst/cst_pipeline_translation.cpp +++ b/src/mongo/db/cst/cst_pipeline_translation.cpp @@ -142,8 +142,8 @@ boost::intrusive_ptr<Expression> translateFunctionObject( // Constants require using Value instead of Expression to build the tree in agg. if (stdx::get<KeyFieldname>(object[0].first) == KeyFieldname::constExpr || stdx::get<KeyFieldname>(object[0].first) == KeyFieldname::literal) - return make_intrusive<ExpressionConstant>( - expCtx.get(), std::move(translateLiteralToValue(object[0].second))); + return make_intrusive<ExpressionConstant>(expCtx.get(), + translateLiteralToValue(object[0].second)); auto expressions = std::vector<boost::intrusive_ptr<Expression>>{}; // This assumes the Expression is in array-form. |