0
0
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:
Kyle Suarez 2016-07-22 10:03:44 -04:00
parent af928e87f8
commit 3b3c14bb60

View File

@ -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);