summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/parsed_exclusion_projection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/parsed_exclusion_projection.h')
-rw-r--r--src/mongo/db/pipeline/parsed_exclusion_projection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/parsed_exclusion_projection.h b/src/mongo/db/pipeline/parsed_exclusion_projection.h
index feb868f08ca..d9c495a9cfb 100644
--- a/src/mongo/db/pipeline/parsed_exclusion_projection.h
+++ b/src/mongo/db/pipeline/parsed_exclusion_projection.h
@@ -64,7 +64,7 @@ public:
/**
* Applies this tree of exclusions to the input document.
*/
- Document applyProjection(Document input) const;
+ Document applyProjection(const Document& input) const;
/**
* Creates the child if it doesn't already exist. 'field' is not allowed to be dotted.
@@ -116,7 +116,7 @@ public:
/**
* Exclude the fields specified.
*/
- Document applyProjection(Document inputDoc) const final;
+ Document applyProjection(const Document& inputDoc) const final;
DocumentSource::GetDepsReturn addDependencies(DepsTracker* deps) const final {
return DocumentSource::SEE_NEXT;