mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-50254 Fix compile error due to pessimising std::move
This commit is contained in:
parent
5633aae06d
commit
fadba84c0a
@ -108,7 +108,7 @@ CNode disambiguateCompoundProjection(CNode project) {
|
||||
auto projectionType = boost::optional<ProjectionType>{};
|
||||
auto cNode = replaceCNode(project, projectionType);
|
||||
if (!cNode)
|
||||
return std::move(project);
|
||||
return project;
|
||||
switch (*projectionType) {
|
||||
case ProjectionType::inclusion:
|
||||
return CNode{CompoundInclusionKey{std::make_unique<CNode>(*std::move(cNode))}};
|
||||
|
Loading…
Reference in New Issue
Block a user