summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_redact.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_redact.h')
-rw-r--r--src/mongo/db/pipeline/document_source_redact.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_redact.h b/src/mongo/db/pipeline/document_source_redact.h
index 82d8666ebaf..a76ca9c7940 100644
--- a/src/mongo/db/pipeline/document_source_redact.h
+++ b/src/mongo/db/pipeline/document_source_redact.h
@@ -57,8 +57,8 @@ private:
const boost::intrusive_ptr<Expression>& previsit);
// These both work over pExpCtx->variables.
- boost::optional<Document> redactObject(Document root); // redacts CURRENT
- Value redactValue(const Value& in, Document root);
+ boost::optional<Document> redactObject(const Document& root); // redacts CURRENT
+ Value redactValue(const Value& in, const Document& root);
Variables::Id _currentId;
boost::intrusive_ptr<Expression> _expression;