summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_request.cpp')
-rw-r--r--src/mongo/db/query/query_request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/query_request.cpp b/src/mongo/db/query/query_request.cpp
index 0dd44bc7f3f..a2e098f11df 100644
--- a/src/mongo/db/query/query_request.cpp
+++ b/src/mongo/db/query/query_request.cpp
@@ -401,7 +401,7 @@ StatusWith<unique_ptr<QueryRequest>> QueryRequest::parseFromFindCommand(unique_p
return std::move(qr);
}
-StatusWith<unique_ptr<QueryRequest>> QueryRequest::makeFromFindCommand(NamespaceString nss,
+StatusWith<unique_ptr<QueryRequest>> QueryRequest::makeFromFindCommand(const NamespaceString& nss,
const BSONObj& cmdObj,
bool isExplain) {
BSONElement first = cmdObj.firstElement();