mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
SERVER-24766 don't force a move in ViewResponseFormatter constructor
This commit is contained in:
parent
af928e87f8
commit
3b3c14bb60
@ -42,7 +42,7 @@ const char ViewResponseFormatter::kDistinctField[] = "values";
|
||||
const char ViewResponseFormatter::kOkField[] = "ok";
|
||||
|
||||
ViewResponseFormatter::ViewResponseFormatter(BSONObj aggregationResponse)
|
||||
: _response(std::move(aggregationResponse)) {}
|
||||
: _response(aggregationResponse) {}
|
||||
|
||||
Status ViewResponseFormatter::appendAsCountResponse(BSONObjBuilder* resultBuilder) {
|
||||
auto cursorResponse = CursorResponse::parseFromBSON(_response);
|
||||
|
Loading…
Reference in New Issue
Block a user